Re: [R] extract minimal variables from model

2017-01-06 Thread Marc Schwartz
> On Jan 6, 2017, at 11:03 AM, Jacob Wegelin wrote: > > Given any regression model, created for instance by lm, lme, lmer, or rqs, > such as > > z1<-lm(weight~poly(Time,2), data=ChickWeight) > > I would like a general way to obtain only those variables used for the model. > In the current e

[R] extract minimal variables from model

2017-01-06 Thread Jacob Wegelin
Given any regression model, created for instance by lm, lme, lmer, or rqs, such as z1<-lm(weight~poly(Time,2), data=ChickWeight) I would like a general way to obtain only those variables used for the model. In the current example, this "minimal data frame" would consist of the "weight" and "T