Learn R Programming

pharmr (version 1.4.0)

get_dv_symbol: get_dv_symbol

Description

Get the symbol for a certain dvid or dv and check that it is valid

Usage

get_dv_symbol(model, dv = NULL)

Value

(sympy.Symbol) DV symbol

Arguments

model

(Model) Pharmpy model

dv

(Expr or str or numeric (optional)) Either a dv symbol, str or dvid. If NULL (default) return the only or first dv.

Examples

Run this code
if (FALSE) {
model <- load_example_model("pheno")
get_dv_symbol(model, "Y")
get_dv_symbol(model, 1)
}

Run the code above in your browser using DataLab