Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

model.data

Create a "raw" (UNTRANSFORMED) data frame equivalent to the input data that would be required to fit the given model.


Description

This is a generic method. Unlike model.frame and model.matrix, this does not return transformed variables. It deals with regression formulae that have functions like poly(x, d) in them. It differentiates x from d in those expressions. And it also manages log(x + 10). The default method works for standarad R regression models like lm and glm.

Usage

model.data(model, ...)

Arguments

model

A fitted regression model in which the data argument is specified. This function will fail if the model was not fit with the data option.

...

Arguments passed to implementing methods.

Value

A data frame

Author(s)

Paul Johnson <pauljohn@ku.edu>


rockchalk

Regression Estimation and Presentation

v1.8.144
GPL (>= 3.0)
Authors
Paul E. Johnson [aut, cre], Gabor Grothendieck [ctb]
Initial release
2019-03-07

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.