[R] pulling items out of a lm() call
Peter Dalgaard
p.dalgaard at biostat.ku.dk
Mon May 1 13:40:11 CEST 2006
"Dimitris Rizopoulos" <dimitris.rizopoulos at med.kuleuven.be> writes:
> probably all.vars() could be useful in this case, e.g.,
>
> m1 <- lm(y ~ female + I(age^2) + female:black + (age +
> education)*female)
> all.vars(formula(m1))
Drats. I forgot about that. Much better than my suggestion.
--
O__ ---- Peter Dalgaard Øster Farimagsgade 5, Entr.B
c/ /'_ --- Dept. of Biostatistics PO Box 2099, 1014 Cph. K
(*) \(*) -- University of Copenhagen Denmark Ph: (+45) 35327918
~~~~~~~~~~ - (p.dalgaard at biostat.ku.dk) FAX: (+45) 35327907
More information about the R-help
mailing list