To be used in fit_mfp()
.
This function resets the acdx
parameter (logical vector) of variables with
less than 5 distinct values to FALSE
.
reset_acd(x, acdx)
Logical vector of same length as acdx
.
a design matrix of dimension nobs x nvars where nvars is the number of predictors excluding an intercept.
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
.