get_model_covariates: get_model_covariates

View source: R/functions_wrapper.R

get_model_covariatesR Documentation

get_model_covariates

Description

List of covariates used in model

A covariate in the model is here defined to be a data item affecting the model prediction excluding dosing items that are not used in model code.

Usage

get_model_covariates(model, strings = FALSE)

Arguments

model

(Model) Pharmpy model

strings

(logical) Return strings instead of symbols? FALSE (default) will give symbols

Value

(vector) Covariate symbols or names

Examples

## Not run: 
model <- load_example_model("pheno")
get_model_covariates(model)
get_model_covariates(model, strings=TRUE)

## End(Not run)


pharmpy/pharmr documentation built on Feb. 15, 2025, 3:22 a.m.