transform_etas_john_draper {pharmr}R Documentation

transform_etas_john_draper

Description

Applies a John Draper transformation (1) to spelected etas

Initial estimate for lambda is 0.1 with bounds (-3, 3).

(1) John, J., Draper, N. (1980). An Alternative Family of Transformations. Journal of the Royal Statistical Society. Series C (Applied Statistics), 29(2), 190-197. doi:10.2307/2986305

Usage

transform_etas_john_draper(model, list_of_etas = NULL)

Arguments

model

(Model) Pharmpy model to apply John Draper transformation to.

list_of_etas

(array(str) or str (optional)) Name/names of etas to transform. If NULL, all etas will be transformed (default).

Value

(Model) Pharmpy model object

See Also

transform_etas_boxcox

transform_etas_tdist

Examples

## Not run: 
model <- load_example_model("pheno")
model <- transform_etas_john_draper(model, c("ETA_CL"))
model$statements$before_odes$full_expression("CL")

## End(Not run)

[Package pharmr version 1.0.1 Index]