prGetModelVariables {Greg} | R 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 |
add_intercept |
Adds the intercept if it exists |
Value
vector with names
[Package Greg version 2.0.2 Index]