predict_with_observations_plot.RdPlots predictions of the model with observed values
A data frame containing C-QT analysis dataset
An nlme::lme model object from model fitting
An unquoted column name for drug concentration measurements
An unquoted column name for dependent variable measurements
An unquoted column name for subject ID
An unquoted column name for nominal time since dose
An unquoted column name for treatment group
A list for predictions with model. Should contain a value for each predictor in the model.
An optional list for contrast predictions
Optional vector of numbers to add as horizontal dashed lines
Numeric confidence interval level (default: 0.9)
A string specifying contrast method when using control_predictors: "matched" for individual ID+time matching (crossover studies), "group" for group-wise subtraction (parallel studies)
A named list of arguments passed to style_plot()
a plot
data_proc <- preprocess(cqtkit_data_verapamil)
fit <- fit_prespecified_model(
data_proc,
deltaQTCF,
ID,
CONC,
deltaQTCFBL,
TRTG,
TAFD,
"REML",
TRUE
)
predict_with_observations_plot(
data_proc,
fit,
CONC,
deltaQTCF,
treatment_predictors = list(
CONC = 0,
TRTG = "Verapamil HCL",
TAFD = "2 HR",
deltaQTCFBL = 0
),
conf_int = 0.9
)