Learn R Programming

pharmr (version 1.4.0)

has_covariate_effect: has_covariate_effect

Description

Tests if an instance of :class:pharmpy.model has a given covariate effect.

Usage

has_covariate_effect(model, parameter, covariate)

Value

(logical) Whether input model has a covariate effect of the input covariate on the input parameter.

Arguments

model

(Model) Pharmpy model to check for covariate effect.

parameter

(str) Name of parameter.

covariate

(str) Name of covariate.

Examples

Run this code
if (FALSE) {
model <- load_example_model("pheno")
has_covariate_effect(model, "CL", "APGR")
}

Run the code above in your browser using DataLab