split_joint_distribution {pharmr}R Documentation

split_joint_distribution

Description

Splits etas following a joint distribution into separate distributions.

Usage

split_joint_distribution(model, rvs = NULL)

Arguments

model

(Model) Pharmpy model

rvs

(array(str) or str (optional)) Name/names of etas to separate. If NULL, all etas that are IIVs and non-fixed will become single. NULL is default.

Value

(Model) Pharmpy model object

See Also

create_joint_distribution : combine etas into a join distribution

Examples

## Not run: 
model <- load_example_model("pheno")
model <- create_joint_distribution(model, c('ETA_CL', 'ETA_VC'))
model$random_variables$etas
model <- split_joint_distribution(model, c('ETA_CL', 'ETA_VC'))
model$random_variables$etas

## End(Not run)

[Package pharmr version 1.0.1 Index]