format_vpc_input_data: Prepare VPC data for future calculations by standardizing...

View source: R/format_vpc_input_data.R

format_vpc_input_dataR Documentation

Prepare VPC data for future calculations by standardizing column names and modifying the input data based on the limits of quantification, stratification, and logarithmic values.

Description

Prepare VPC data for future calculations by standardizing column names and modifying the input data based on the limits of quantification, stratification, and logarithmic values.

Usage

format_vpc_input_data(
  dat,
  cols,
  lloq,
  uloq,
  stratify,
  log_y,
  log_y_min,
  what = "observed",
  verbose = FALSE,
  pred_corr = FALSE
)

format_vpc_input_data_tte(
  dat,
  cols,
  stratify,
  rtte,
  rtte_calc_diff,
  what = "observed",
  verbose = FALSE
)

Arguments

dat

An input data.frame or similar object

cols

A list with an element for colname giving the name for colname in dat.

lloq

Number or NULL indicating lower limit of quantification. Default is NULL.

uloq

Number or NULL indicating upper limit of quantification. Default is NULL.

stratify

character vector of stratification variables. Only 1 or 2 stratification variables can be supplied.

log_y

Boolean indicting whether y-axis should be shown as logarithmic. Default is FALSE.

log_y_min

minimal value when using log_y argument. Default is 1e-3.

what

The description of the data (typically "observed" or "simulated")

verbose

show debugging information (TRUE or FALSE)

pred_corr

perform prediction-correction?

rtte

repeated time-to-event data? Default is FALSE (treat as single-event TTE)

rtte_calc_diff

recalculate time (T/F)? When simulating in NONMEM, you will probably need to set this to TRUE to recalculate the TIME to relative times between events (unless you output the time difference between events and specify that as independent variable to the vpc_tte() function.

Value

dat modified based on other inputs.

A named list with "dat" modified, as required, and "stratify" with the stratification parameters

Functions

  • format_vpc_input_data_tte(): Prepare VPC data for future calculations for time-to-event data


ronkeizer/vpc documentation built on May 11, 2023, 11:09 p.m.