On Thu, Nov 24, 2011 at 9:14 PM, Duncan Murdoch <murdoch.dun...@gmail.com> wrote: > It is retained. terms(fit) will give it to you, if fit is an lm object. >
Thank you. The following works nicely. > (form <- formula(y1~x1)) y1 ~ x1 > x <- lm(form, anscombe) > formula(terms(x)) y1 ~ x1 However, I was hoping that there was a way to input the 'form' object so that summary(x) would print the underlying formula used, not the formula object name. I was thinking of something in the style of x <- lm(deparse(form), anscombe) summary(x) Can this be done? Regards Liviu ______________________________________________ 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.