Learn R Programming

pmxcv (version 0.0.2)

nonmemboxcox: Box-Cox transform typically used in NONMEM

Description

Parameters are typically treated as lognormally-distributed by NONMEM users. Box-Cox transforms are typically applied to the exponentiated individual ETA parameters; this means the parameter is neither Box-Cox distributed nor lognormally-distributed, but both. To get the "Box-Cox Transform" as it would be relevant for CV% calculation, these properties have to be considered.

Usage

nonmemboxcox(x, lambda, theta = 1, inv = FALSE)

Value

Box-Cox transformed or untransformed vector

Arguments

x

random vector. Must be positive.

lambda

shape parameter

theta

centrality parameter

inv

inverse transform

Examples

Run this code
y <- nonmemboxcox(1.5, lambda = 0.5, theta = 1)
nonmemboxcox(y, lambda = 0.5, theta = 1, inv = TRUE)

Run the code above in your browser using DataLab