Message-ID: <1318794918528-3910327.post@n4.nabble.com>
Date: 2011-10-16T19:55:18Z
From: Cliff Clive
Subject: Suppressing the Intercept in lm() when using a dataframe for the model
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 the names of individual
columns?
--
View this message in context: http://r.789695.n4.nabble.com/Suppressing-the-Intercept-in-lm-when-using-a-dataframe-for-the-model-tp3910327p3910327.html
Sent from the R help mailing list archive at Nabble.com.