apply_acd: Function to apply Approximate Cumulative Distribution (ACD)

View source: R/acd.R

apply_acdR Documentation

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, ...)

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.

Value

The transformed input vector x.


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