Re: [R] Constrained coefficients in lm (correction)

2012-06-24 Thread rgoodman
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

Re: [R] Constrained coefficients in lm (correction)

2008-07-23 Thread Moshe Olshansky
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&

Re: [R] Constrained coefficients in lm (correction)

2008-07-23 Thread Horace Tso
- 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

[R] Constrained coefficients in lm (correction)

2008-07-23 Thread Jorge Ivan Velez
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

[R] Constrained coefficients in lm

2008-07-23 Thread Jorge Ivan Velez
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