tag:blogger.com,1999:blog-8269737761286917895.post7960748452224180286..comments2024-02-19T23:07:54.532-08:00Comments on Coffee and Econometrics in the Morning: Forming FormulasTony Cooksonhttp://www.blogger.com/profile/12565713889808330198noreply@blogger.comBlogger1125tag:blogger.com,1999:blog-8269737761286917895.post-46405826290835158252012-05-07T14:37:09.336-07:002012-05-07T14:37:09.336-07:00The all.vars approach does not necessarily return ...The all.vars approach does not necessarily return what you expect for the case below, whereas your "inelegant" method does. Perhaps you have a suggestion for an elegant solution?<br /><br />> all.vars(y~x1+I(x1^2))<br />[1] "y" "x1" "x1"Anonymousnoreply@blogger.com