get_model: Get the model

View source: R/fit_model.R

get_modelR Documentation

Get the model

Description

Extract the model (an object of class lm) from an object of class big.

Usage

get_model(object, ...)

Arguments

object

an object of class big.

...

Further arguments to be passed to or from other methods. They are ignored in this function.

Value

An object of class lm.

Examples

set.seed(1)
n <- 30
p <- 10
X <- matrix(rnorm(n * p), ncol = p)
y <- X[, 2] + 2*X[, 3] - X[, 6] + rnorm(n)
d <- prepare_data(y, X)
m <- stepwise(d)
get_model(m)

bigstep documentation built on May 31, 2023, 5:36 p.m.