View source: R/format_vpc_input_data.R
format_vpc_input_data | R 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.
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
)
dat |
An input data.frame or similar object |
cols |
A list with an element for colname giving the name for colname in
|
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. |
dat
modified based on other inputs.
A named list with "dat" modified, as required, and "stratify" with the stratification parameters
format_vpc_input_data_tte()
: Prepare VPC data for future calculations
for time-to-event data
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.