switch_covariates_type: Switch covariate type (categorical <-> continuous)

View source: R/utils.R

switch_covariates_typeR Documentation

Switch covariate type (categorical <-> continuous)

Description

Convert categorical covariates to continuous covariates and vice versa.

Usage

switch_covariates_type(run, covariates = NULL)

Arguments

run

pmxploit NONMEM run object.

covariates

character vector of covariates names.

Value

A NONMEM run object.

Examples

switched_EXAMPLERUN <- switch_covariates_type(run = EXAMPLERUN, covariates = c("WT", "STUD"))

EXAMPLERUN %>% plot_continuous_covariates_distributions()
switched_EXAMPLERUN %>% plot_continuous_covariates_distributions()

EXAMPLERUN %>% plot_categorical_covariates_distributions()

pnolain/pmxploit documentation built on Jan. 31, 2024, 1:16 p.m.