add_cmt {pharmr}R Documentation

add_cmt

Description

Add a CMT column to the model dataset and datainfo if not existed

In case of multiple doses, this method is dependent on the presence of an admid column to correctly number each dose.

NOTE : Existing CMT is based on datainfo type being set to 'compartment' and a column named 'CMT' can be replaced

Usage

add_cmt(model)

Arguments

model

(Model) Pharmpy model

Value

(model : Model) Pharmpy model

See Also

get_admid : Get or create an admid column

get_cmt : Get or create a cmt column


[Package pharmr version 1.0.1 Index]