This function extract the modelled variables. Any interaction terms are removed as those should already be represented by the individual terms.
prGetModelVariables(
model,
remove_splines = TRUE,
remove_interaction_vars = FALSE,
add_intercept = FALSE
)
vector with names
A model fit
If splines, etc. should be cleaned from the variables as these no longer are "pure" variables
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
Adds the intercept if it exists