[R] extract variables from linear model

From: Jörg Schaber <schaber_at_molgen.mpg.de>
Date: Fri 13 Jan 2006 - 00:49:45 EST


I fitted a linear model:
fit <- lm(y ~ a * b + c - 1 , na.action='na.omit')

Now I want to extract only the a * b effects with confidence intervals. Of course, I can just add the coefficients by hand, but I think there should an easier way.
I tried with predict.lm using the 'terms' argument, but I didn't manage to do it.
Any hints are appreciated,



R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html Received on Fri Jan 13 00:52:54 2006

This archive was generated by hypermail 2.1.8 : Fri 03 Mar 2006 - 03:42:03 EST