
Compute Exposure Predictions
compute_exposure_predictions.RdPredicts dQTC over range of concentration values with contrast. To help keep the predictions quick, the concentration values to predict at are done at an order of magnitude of concentration values, if max(conc) = 7340, then by = 100.
Usage
compute_exposure_predictions(
data,
fit,
conc_col,
treatment_predictors,
control_predictors = NULL,
cmaxes = NULL,
conf_int = 0.9
)Arguments
- data
A data frame containing C-QT analysis dataset
- fit
An nlme::lme model object from model fitting
- conc_col
An unquoted column name for concentration measurements used to fit the model
- treatment_predictors
List of a values for contrast. conc will update
- control_predictors
List of b values for contrast
- cmaxes
Vector of Cmax for each dose
- conf_int
Numeric confidence interval level (default: 0.9)
Value
A tibble with concentration, predicted deltaQTc, and lower/upper confidence bounds for exposure-response predictions
Examples
data_proc <- preprocess(cqtkit_data_verapamil)
fit <- nlme::lme(
fixed = deltaQTCF ~ 1 + CONC,
random = ~ 1 | ID,
method = "REML",
data = data_proc
)
compute_exposure_predictions(
data_proc,
fit,
CONC,
list(CONC = 10)
)
#> Error in eval(Call$data, env): object 'data_proc' not found