Learn R Programming

mfp2 (version 1.0.0)

apply_acd: Function to apply Approximate Cumulative Distribution (ACD)

Description

Applies the acd transformation as outlined in Royston (2014) and Royston and Sauerbrei (2016). Designed to work with the output of fit_acd(), Please refer to the corresponding documentation for more details.

Usage

apply_acd(x, beta0, beta1, power, shift, scale, ...)

Value

The transformed input vector x.

Arguments

x

a numeric vector.

beta0, beta1

each a numeric value, representing the coefficients of the FP1 model for the ACD transformation.

power

a numeric value, estimated power to be used in the FP1 model for the ACD transformation.

shift

a numeric value that is used to shift the values of x to positive values.

scale

a numeric value used to scale x.

...

not used.