Skip to content
Prev 316411 / 398503 Next

how to suppress the intercept in an lm()-like formula method?

On 29/01/2013 10:21 AM, Michael Friendly wrote:
This line calls model.frame, which is generic.  You're passing a formula 
to it, and there is no formula method, so the default method gets 
called.  model.frame.default() does lots of stuff, and then calls 
terms(formula).  That's where my modification sneaks in.

model.frame.default() also appears to be doing stuff with na.action, but 
I haven't traced through to see exactly how much gets done.

Duncan Murdoch