reset_acd {mfp2} | R Documentation |
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)
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 |
Value
Logical vector of same length as acdx
.
[Package mfp2 version 1.0.0 Index]