View source: R/functions_wrapper.R
| remove_covariate_effect | R Documentation |
Remove a covariate effect from an instance of :class:pharmpy.model.
remove_covariate_effect(model, parameter, covariate, keep_fixed = TRUE)
model |
(Model) Pharmpy model |
parameter |
(str) Name of parameter. |
covariate |
(str) Name of covariate. |
keep_fixed |
(logical) Whether to keep fixed effects (e.g. allometry) or not. Default is TRUE |
(Model) Updated Pharmpy model
## Not run:
model <- load_example_model("pheno")
has_covariate_effect(model, "CL", "WGT")
model <- remove_covariate_effect(model, "CL", "WGT", keep_fixed=FALSE)
has_covariate_effect(model, "CL", "WGT")
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.