Summarizes the selected categorical covariates, returning counts and frequencies of each levels.

summarize_categorical_covariates(run, covariates = NULL,
  baseline_only = TRUE)

Arguments

run

pmxploit NONMEM run object.

covariates

character vector of categorical covariates names. Default is NULL, returning all categorical covariates.

baseline_only

logical. Consider only the baseline (= first) values of the subjects. Default is TRUE.

Value

A data frame.

Examples

EXAMPLERUN %>% summarize_categorical_covariates()
#> # A tibble: 27 x 4 #> covariate value n frequency #> <chr> <chr> <int> <dbl> #> 1 ABDO 0 58 0.110 #> 2 ABDO 1 469 0.890 #> 3 ARM 0 524 0.994 #> 4 ARM 1 3 0.00569 #> 5 DISST Healthy volunteer 150 0.285 #> 6 DISST Patient 377 0.715 #> 7 EZE 0 459 0.871 #> 8 EZE 1 68 0.129 #> 9 FIBR 0 502 0.953 #> 10 FIBR 1 25 0.0474 #> # … with 17 more rows