compute_conc_for_upper_pred.RdComputes the concentration needed for a upper conf_int prediction of the threshold value.
compute_conc_for_upper_pred(
data,
fit,
conc_col_name,
trt_col_name,
treatment_group,
threshold = 10,
conf_int = 0.9
)A data frame containing C-QT analysis dataset
An nlme::lme model object from model fitting
String of concentration (independent variable) column name
String of treatment group column name
String of treatment group to make prediction for
Value used as upper CI prediction, default = 10
Numeric confidence interval level (default: 0.9)
list of the two potential solutions.
mod <- fit_prespecified_model(
cqtkit_data_verapamil %>% preprocess(),
deltaQTCF,
ID,
CONC,
deltaQTCFBL,
TRTG,
TAFD,
"REML",
remove_conc_iiv = TRUE
)
compute_conc_for_upper_pred(
cqtkit_data_verapamil %>% preprocess(),
mod,
"CONC",
"TRTG",
"Verapamil HCL"
)
#> $lower_conc
#> [1] 365.0433
#>
#> $upper_conc
#> [1] -1139.494
#>