I want to extra the part of the formula not including the response
variable from an lm object. For example if the lm object ABx.lm was
created by the call

ABx.lm <- lm( y ~ A + B + x, ...)

Then ACx.lm is saved as part of a workspace.
I wish to extract   "~ A + B + x".  Later in my code I will fit another
linear model of the form z ~ A + B + x for some other response variable z.
I would be grateful for any suggestions of a nice way to do this.

Cheers,  Murray Jorgensen

--
Dr Murray Jorgensen      http://www.stats.waikato.ac.nz/Staff/maj.html
Department of Statistics, University of Waikato, Hamilton, New Zealand
Email: [EMAIL PROTECTED]    [EMAIL PROTECTED]      Fax 7 838 4155
Phone  +64 7 838 4773 wk    Home +64 7 825 0441    Mobile 021 139 5862

______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to