Skip to content
Prev 316399 / 398503 Next

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

Hi Michael,

How about,

    x <- x[, colnames(x) != "(Intercept)"]

I hope this helps,
 John