prGetModelData {Greg}R Documentation

Get model data.frame

Description

Returns the raw variables from the original data frame using the get_all_vars() but with the twist that it also performs any associated subsetting based on the model's subset() argument.

Usage

prGetModelData(x, terms_only = FALSE, term.label)

Arguments

x

The fitted model.

terms_only

Only use the right side of the equation by selecting the terms

term.label

Sometimes need to retrieve specific spline labels that are not among the 'labels(terms(x))'

Value

data.frame


[Package Greg version 2.0.2 Index]