Re: [R] How to obtain the model/equation at each level automatically in a regression model with a few factors

2013-02-06 Thread chunlin liu
anks, -chunlin On Tue, Feb 5, 2013 at 1:56 AM, Andrew Robinson wrote: > I think that the excellent estimable function from gmodels should help > you. > > Cheers > > Andrew > > > On Tuesday, February 5, 2013, chunlin liu wrote: > >> I am wondering how to obtai

[R] How to obtain the model/equation at each level automatically in a regression model with a few factors

2013-02-05 Thread chunlin liu
I am wondering how to obtain the model/equation at each level automatically in a regression model with a few factors without looking at summary of the lm model. For example, consider lm.factors <- lm(y ~ x1 + factor(x2)*factor(x3)+x4*factor(x5)) The coefficients of lm.factors in summary(lm.factor