Learn R Programming

mfp2 (version 1.0.0)

reset_acd: Helper to reset acd transformation for variables with few values

Description

To be used in fit_mfp(). This function resets the acdx parameter (logical vector) of variables with less than 5 distinct values to FALSE.

Usage

reset_acd(x, acdx)

Value

Logical vector of same length as acdx.

Arguments

x

a design matrix of dimension nobs x nvars where nvars is the number of predictors excluding an intercept.

acdx

a named logical vector of length nvars indicating which continuous variables should undergo the approximate cumulative distribution (ACD) transformation. May be ordered differently than the columns of x.