summarize_continuous_covariates: Continuous covariates distributions summary

View source: R/summarize_continuous_covariates.R

summarize_continuous_covariatesR Documentation

Continuous covariates distributions summary

Description

Summarizes the selected continuous covariates: number of values, mean, median, quantiles and range.

Usage

summarize_continuous_covariates(
  run,
  covariates = NULL,
  quantiles = c(0.05, 0.25, 0.75, 0.95),
  baseline_only = TRUE
)

Arguments

run

pmxploit NONMEM run object.

covariates

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

quantiles

numeric vector of quantiles. Default are 5th, 25th, 75th and 95th percentiles.

baseline_only

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

Value

A data frame.

Examples

EXAMPLERUN %>% summarize_continuous_covariates()

EXAMPLERUN %>% summarize_continuous_covariates(quantiles = seq(0.05, 0.95, 0.05))
EXAMPLERUN %>% summarize_continuous_covariates(quantiles = NULL)

EXAMPLERUN %>% group_by(STUD) %>%  summarize_continuous_covariates()
EXAMPLERUN %>% group_by(STUD) %>% summarize_continuous_covariates(quantiles = NULL)

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