[R] omitting coefficients in summary.lm()

P Ehlers ehlers at math.ucalgary.ca
Mon Apr 24 19:00:03 CEST 2006


Dimitri,

coef(summary(your model)) pulls out the matrix of coefs/SEs/etc.
You could subset that.

Peter Ehlers


Dimitri Szerman wrote:
> Hi,
> 
> I'm running a regression using lm(), in which one of the right-hand side
> variables is factor with many levels (say, 80). I am not intersted in the
> estimates of the resulting dummies, but I have to include them in my
> regression equation. So, I don't want the estimates associated with theses
> dummies to be printed by summary.lm( ). Is there an easy way to do this?
> 
> Thank you,
> 
> Dimitri
> 
> 	[[alternative HTML version deleted]]
> 
> ______________________________________________
> R-help at 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




More information about the R-help mailing list