prototype_for: Get a prototype data frame for partial residuals

View source: R/model_utils.R

prototype_forR Documentation

Get a prototype data frame for partial residuals

Description

All predictors, except the one we are calculating partial residuals for, are set to 0 (or their baseline level, for factors).

Usage

prototype_for(df, predictor)

Arguments

df

data frame of predictors

predictor

character vector identifying one predictor

Value

prototype data frame


regressinator documentation built on Sept. 11, 2024, 6:50 p.m.