Learn R Programming

pharmr (version 1.4.0)

get_model_covariates: 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)

Value

(vector) Covariate symbols or names

Arguments

model

(Model) Pharmpy model

strings

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

Examples

Run this code
if (FALSE) {
model <- load_example_model("pheno")
get_model_covariates(model)
get_model_covariates(model, strings=TRUE)
}

Run the code above in your browser using DataLab