Re: [R] Suppressing the Intercept in lm() when using a dataframe for the model

2011-10-16 Thread Cliff Clive
Well don't I feel silly now. Thanks for the help! -- View this message in context: http://r.789695.n4.nabble.com/Suppressing-the-Intercept-in-lm-when-using-a-dataframe-for-the-model-tp3910327p3910443.html Sent from the R help mailing list archive at Nabble.com. _

Re: [R] Suppressing the Intercept in lm() when using a dataframe for the model

2011-10-16 Thread David Winsemius
On Oct 16, 2011, at 3:55 PM, Cliff Clive wrote: It's easy to run a linear regression on a simple model without an intercept just by doing this: lm(y ~ x1 + x2 -1) Is there a similar trick to suppress the intercept when your model is in a large dataframe and you don't want to write out th

Re: [R] Suppressing the Intercept in lm() when using a dataframe for the model

2011-10-16 Thread Joshua Wiley
On Sun, Oct 16, 2011 at 12:55 PM, Cliff Clive wrote: > It's easy to run a linear regression on a simple model without an intercept > just by doing this: > > lm(y ~ x1 + x2 -1) > > > Is there a similar trick to suppress the intercept when your model is in a > large dataframe and you don't want to w