| get_selected_variable_names | R Documentation |
mfp2 objectSimply extracts all variables for which not all powers are estimated to
be NA. The names refer to the original names in the dataset and do not
include transformations.
get_selected_variable_names(object)
object |
fitted |
Character vector of names, ordered as defined by xorder in mfp2().
# Gaussian model
data("prostate")
x = as.matrix(prostate[,2:8])
y = as.numeric(prostate$lpsa)
# default interface
fit = mfp2(x, y, verbose = FALSE)
get_selected_variable_names(fit)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.