Learn R Programming

do (version 2.0.0.1)

model.data: Extract data of model

Description

Extract data of model

Usage

model.data(fit)

model.y(fit)

model.x(fit)

Value

dataframe in the model

Arguments

fit

fitted results

Examples

Run this code
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