Skip to content
Prev 295900 / 398503 Next

setting parameters equal in lm

I don't know how it ties into the tools car gives you, but one (quick
and dirty) way to do this is to simply regress on

Y ~ aX2 + b(X1+X3)

or in R code something like:

lm(Y ~ X2 + I(X1+X3), data = data.set)

which gives a linear model you can play around with. Note the I()
function [that's the capital letter immediately preceding J] which
tells R to interpret that term "AsIs"

Hope this helps,
Michael
On Mon, May 28, 2012 at 11:14 PM, Dustin Fife <fife.dustin at gmail.com> wrote: