has_covariate_effect: has_covariate_effect

View source: R/functions_wrapper.R

has_covariate_effectR Documentation

has_covariate_effect

Description

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

Usage

has_covariate_effect(model, parameter, covariate)

Arguments

model

(Model) Pharmpy model to check for covariate effect.

parameter

(str) Name of parameter.

covariate

(str) Name of covariate.

Value

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

Examples

## Not run: 
model <- load_example_model("pheno")
has_covariate_effect(model, "CL", "APGR")

## End(Not run)


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