Hi Jorge,
Did you ever figure this out? I want to do the same thing with the
additional constraint of the coef for x1 = 2.
lm(Y~offset(2*x1)+x2+x3,data=mydata)
where b= coeff for x2, c = coeff for x3, b+c=1 and b and c>0.
I've loaded the systemfit package, but the suggestion "R*beta0 = q, wher
ez <[EMAIL PROTECTED]> wrote:
> From: Jorge Ivan Velez <[EMAIL PROTECTED]>
> Subject: [R] Constrained coefficients in lm (correction)
> To: "R mailing list"
> Received: Thursday, 24 July, 2008, 5:39 AM
> Dear list,
>
> In my previous email, the model I&
-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Jorge Ivan Velez
Sent: Wednesday, July 23, 2008 12:39 PM
To: R mailing list
Subject: [R] Constrained coefficients in lm (correction)
Dear list,
In my previous email, the model I'd like to estimate is
rea=a*st+b*mod+error, wher
Dear list,
In my previous email, the model I'd like to estimate is
rea=a*st+b*mod+error, where a+b=1 and a,b>0. My apologies for the
misunderstanding.
Thanks for all your help,
Jorge
On Wed, Jul 23, 2008 at 3:35 PM, Jorge Ivan Velez <[EMAIL PROTECTED]>
wrote:
>
> Dear list,
>
> I have a data
Dear list,
I have a data set which looks like myDF (see below) and I'd like to estimate
the linear model rea=a*rea+b*mod+error, where a+b=1 and a,b>0. I tried
mymodel=lm(rea~ st + mod-1, data=myDF)
summary(mymodel)
but I couldn't get what I'm looking for. Also, I tried
RSiteSearch("constrained
5 matches
Mail list logo