Skip to content
Prev 157378 / 398506 Next

Regression and data types

On Fri, 2008-09-26 at 13:17 +0100, GRANT Lewis wrote:
Others have replied with an answer to your question. I just wanted to
suggest you don't rummage around in R model objects taking what you like
using '$'. 9 times out of 10 you'll get what you want, but that last
remaining time will have you rubbing your head in confusion at best, at
worst, answers may be just plain wrong.

Use extractor functions, such as coef() instead:

coef(lm(Y ~ X1))

G