Displaying 20 results from an estimated 10000 matches similar to: "log-linear regression question"
2004 Jun 12
1
optimize linear function
I am attempting to optimize a regression model's parameters to meet a specific
target for the sum of positive errors over sum of the dependent variable
(minErr below).
I see two courses of action , 1) estimate a linear model then iteratively
reduce the regressors to achieve the desired positive error threshold
(naturally the regressors and predicted values are biased - but this is
2016 Apr 26
5
Linear Regressions with constraint coefficients
Hi all,
I hope you are doing well?
I?m currently using the lm() function from the package stats to fit linear multifactor regressions.
Unfortunately, I didn?t yet find a way to fit linear multifactor regressions with constraint coefficients? I would like the slope coefficients to be all inside an interval, let?s say, between 0 and 1. Further, if possible, the slope coefficients should add up to
2009 Feb 06
1
Linear model: contrasts
Hey,
I am modelling a linear regression Y=X*B+E. To compute the effect of ?group? the B-values of the regressors/columns that code the interaction effects (col. 5-8 and col. 11-14, see below) have to be weighted with non-zero elements within the contrast "Group 1" minus "Group 2" (see below). My first understanding was that the interaction effects add up to zero in each group.
2016 Apr 28
2
Linear Regressions with constraint coefficients
Hi Gabor,
Thanks a lot for your help!
I tried to implement your nonlinear least squares solver on my data set. I was just wondering about the argument start. If I would like to force all my coefficients to be inside an interval, let?s say, between 0 and 1, what kind of starting values are normally recommended for the start argument (e.g. Using a 4 factor model with b1, b2, b3 and b4, I tried
2016 Apr 28
0
Linear Regressions with constraint coefficients
The nls2 package can be used to get starting values.
On Thu, Apr 28, 2016 at 8:42 AM, Aleksandrovic, Aljosa (Pfaeffikon)
<Aljosa.Aleksandrovic at man.com> wrote:
> Hi Gabor,
>
> Thanks a lot for your help!
>
> I tried to implement your nonlinear least squares solver on my data set. I was just wondering about the argument start. If I would like to force all my coefficients to
2016 Apr 26
0
Linear Regressions with constraint coefficients
This is a quadratic programming problem that you can solve using
either a quadratic programming solver with constraints or a general
nonlinear solver with constraints. See
https://cran.r-project.org/web/views/Optimization.html
for more info on what is available.
Here is an example using a nonlinear least squares solver and
non-negative bound constraints. The constraint that the coefficients
sum
2010 Feb 09
2
Model matrix using dummy regressors or deviation regressors
The model matrix for the code at the end the email is shown below.
Since the model matrix doesn't have -1, I think that it is made of
dummy regressors rather than deviation regressors. I'm wondering how
to make a model matrix using deviation regressors. Could somebody let
me know?
> model.matrix(aaov)
(Intercept) A2 B2 B3 A2:B2 A2:B3
1 1 0 0 0 0 0
2
2011 Apr 17
2
[LLVMdev] Error compiling ConstantProp.cpp
I am using llvm-2.6 and the ConstProp.cpp file is
http://llvm.org/docs/doxygen/html/ConstantProp_8cpp_source.html
and the exact error message is:
llvm[0]: Compiling ConstantProp.cpp for Release build (PIC)
/home/tarun/Desktop/compiler/LLVM/llvm-2.6/include/llvm/Analysis/ConstantFolding.h:
In member function ‘virtual
bool<unnamed>::ConstantPropagation::runOnFunction(llvm::Function&)’:
2011 Apr 17
0
[LLVMdev] Error compiling ConstantProp.cpp
On Sat, Apr 16, 2011 at 5:27 PM, tarun agrawal <tarun at cse.iitb.ac.in> wrote:
> I am using llvm-2.6 and the ConstProp.cpp file is
> http://llvm.org/docs/doxygen/html/ConstantProp_8cpp_source.html
>
> and the exact error message is:
>
> llvm[0]: Compiling ConstantProp.cpp for Release build (PIC)
>
2013 May 29
3
bootstrap
Hi,
You might need to check library(boot).? I have never used that before.? So, I can't comment much.? It is better to post on R-help list.? I had seen your postings on Nabble in the past.? Unfortunately those postings were not accepted in R-help.? You have to directly post at ? r-help at r-project.org after registering at:
https://stat.ethz.ch/mailman/listinfo/r-help
?
2011 May 03
1
[LLVMdev] Error compiling ConstantProp.cpp
Hi
While compiling the ConstantProp.cpp I am getting the following error.
error: too few arguments to function ‘llvm::Constant*
llvm::ConstantFoldInstruction(
llvm::Instruction*, llvm::LLVMContext&, const llvm::TargetData*)
I am using llvm-2.6 and the ConstProp.cpp file is
http://llvm.org/docs/doxygen/html/ConstantProp_8cpp_source.html
and the exact error message is:
llvm[0]: Compiling
2012 May 18
3
LM with summation function
Hi all,
I'm trying to model some data where the y is defined by
y = summation[1 to 50] B1 * x + B2 * x^2 + B3 * x^3
Hopefully that reads clearly for email.
Anyway, if it wasn't for the summation, I know I would do it like this
lm(y ~ x + x2 + x3)
Where x2 and x3 are x^2 and x^3.
However, since each value of x is related to the previous values of x, I
don't know how to do this.
2004 Mar 26
3
regression problem
i need to know how to estimate a linear regression whose coefficients sum
to zero
2011 May 04
2
[LLVMdev] Trace Use-Def chain
On 5/3/11 4:08 PM, tarun agrawal wrote:
> HI
>
> I know it is a very simple question not worth asking here but I am
> really struggling pls help me out..
This is a question worth asking; it's just that not everyone can answer
all the time.
:)
If all you want to do is to follow the SSA def-use chain within a single
function, then this is very easy. All you have to do is use
2011 Apr 17
0
[LLVMdev] Regarding BasicBlock Cloning
On 4/16/11 7:01 PM, tarun agrawal wrote:
> The clone llvm:CloneBasicBlock copies the phi function in the
> replicated basic block from the original basic block.
After you clone the basic block, you can probably replace the phi
instruction with another value of your choice. If you're adding
variables, you'll probably want to create them as allocas and use loads
and stores to
2010 Oct 26
1
Setting constraints in the glm package
Hi,
I would like to set a constraint on the fixed effect estimates in a GLM
model, such as b1=b2. Is this possible in the glm package? Similarly I would
like to set some to equal zero too. I have tried searching the information
with this package, but I can't find anything for this.
Thanks in advance for any help!
David
--
View this message in context:
2011 May 04
0
[LLVMdev] Trace Use-Def chain
Dear Tarun,
It just occurred to me that this may or may not be what you are asking
about. This only finds basic blocks along the def-use chain of an
instruction; it does not find all basic blocks along all paths between
two instructions. I don't know of an algorithm off-hand for the latter,
but if you understand how to iterate over def-use chains and the
control-flow graph, then
2011 May 04
2
[LLVMdev] Trace Use-Def chain
Thanks John,
I know how to iterate through def-use chains and I also have realized the
need for an algorithm to do the work. But the algorithm I am able to figure
out is not linear in time. It wold be a great help if someone suggest me a
way to get all basic-block along all path between two instruction.
On Wed, May 4, 2011 at 7:00 AM, John Criswell <criswell at illinois.edu> wrote:
>
2011 May 03
0
[LLVMdev] Trace Use-Def chain
HI
I know it is a very simple question not worth asking here but I am really
struggling pls help me out..
On Tue, May 3, 2011 at 10:10 PM, tarun agrawal <tarun at cse.iitb.ac.in> wrote:
> Hi,
>
> I need to get all the basic blocks that are there, in the path from
> definition of an instruction to use of that instruction.
>
>
> Regards
> Tarun
>
--------------
2011 Apr 17
4
[LLVMdev] Regarding BasicBlock Cloning
The clone llvm:CloneBasicBlock copies the phi function in the replicated
basic block from the original basic block.
I don't want the copy of phi in relplicated block. For now I am creating .bc
file with -O0 option so that it doesn't generate phi function in first
place. Is this a good approach or there are some other function available
for it.
Tarun
On Sun, Apr 17, 2011 at 5:22 AM, Eli