Skip to content

compute_exposure_predictions

Description

Predicts dQTC over range of concentration values with contrast. To help keep the predictions quick, the concentration values to predict at are done at on 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

NameDescription
dataa dataframe of QTc dataset
fitthe lme model to use for predictions
conc_colan unquoted column name of concentration measurements used to fit the model
treatment_predictorslist of a values for contrast. conc will update
control_predictorslist of b values for contrast
cmaxesvector of Cmax for each dose
conf_intconfidence interval for predictions. Default 90%

Returns

A data frame that contains median concentration, lower and upper bounds CI.

Examples

data <- preprocess(data)
fit <- nlme::lme(
fixed = deltaQTCF ~ 1 + CONC,
random = ~ 1 | ID,
method = "REML",
data = data
)
compute_exposure_predictions(
data, fit, CONC, list(CONC = 10))
compute_exposure_predictions.R
# A tibble: 38 × 4
conc pred lower upper
<dbl> <dbl> <dbl> <dbl>
1 0 -7.18 -9.55 -4.81
2 10 -6.68 -9.04 -4.32
3 20 -6.18 -8.53 -3.82
4 30 -5.67 -8.03 -3.32
5 40 -5.17 -7.53 -2.81
6 50 -4.66 -7.04 -2.29
7 60 -4.16 -6.55 -1.77
8 70 -3.66 -6.07 -1.24
9 80 -3.15 -5.60 -0.706
10 90 -2.65 -5.13 -0.168
# ℹ 28 more rows