transform_etas_john_draper function

transform_etas_john_draper

transform_etas_john_draper

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

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

Returns

(Model) Pharmpy model object

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)

See Also

transform_etas_boxcox

transform_etas_tdist

  • Maintainer: Rikard Nordgren
  • License: LGPL (>= 3)
  • Last published: 2024-12-04