recode_categorical_covariates.Rd
Change the name of categorical covariates levels.
recode_categorical_covariates(run, covariates_levels = NULL)
run |
|
---|---|
covariates_levels | list of categorical covariates, each list item contains the corresponding categorical levels. |
A NONMEM run object.
recoded_EXAMPLERUN <- recode_categorical_covariates(run = EXAMPLERUN, covariates_levels = list(STUD = list(`Study 1` = "1", `Study 2` = "2", `Study 3` = "3"))) # before EXAMPLERUN %>% group_by(STUD) %>% plot_parameters_distributions(type = "boxplot", parameters = "CL")# after recoded_EXAMPLERUN %>% group_by(STUD) %>% plot_parameters_distributions(type = "boxplot", parameters = "CL")