prGetModelData: Get model data.frame

View source: R/private_functions.R

prGetModelDataR 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


gforge/Greg documentation built on Feb. 3, 2024, 5:37 a.m.