powered by
Extract data of model
model.data(fit)model.y(fit)model.x(fit)
model.y(fit)
model.x(fit)
dataframe in the model
fitted results
fit <- lm(mpg~vs+am+poly(qsec,2),data=mtcars) head(model.data(fit)) model.y(fit) model.x(fit)
Run the code above in your browser using DataLab