get_selected_variable_names: Helper function to extract selected variables from fitted...

View source: R/mfp2.R

get_selected_variable_namesR Documentation

Helper function to extract selected variables from fitted mfp2 object

Description

Simply 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.

Usage

get_selected_variable_names(object)

Arguments

object

fitted mfp2 object.

Value

Character vector of names, ordered as defined by xorder in mfp2().

Examples


# 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)


mfp2 documentation built on Nov. 15, 2023, 1:06 a.m.