prGetModelVariables: Get the models variables

View source: R/private_functions.R

prGetModelVariablesR Documentation

Get the models variables

Description

This function extract the modelled variables. Any interaction terms are removed as those should already be represented by the individual terms.

Usage

prGetModelVariables(
  model,
  remove_splines = TRUE,
  remove_interaction_vars = FALSE,
  add_intercept = FALSE
)

Arguments

model

A model fit

remove_splines

If splines, etc. should be cleaned from the variables as these no longer are "pure" variables

remove_interaction_vars

If interaction variables are not interesting then these should be removed. Often in the case of printCrudeAndAdjustedModel() it is impossible to properly show interaction variables and it's better to show these in a separate table

add_intercept

Adds the intercept if it exists

Value

vector with names


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