
GOF Plots
gof_plots.RdMakes goodness of fit plots.
Arguments
- data
A data frame containing C-QT analysis dataset
- fit
An nlme::lme model object from model fitting
- dv_col
An unquoted column name for dependent variable measurements
- conc_col
An unquoted column name for drug concentration measurements
- ntime_col
An unquoted column name for nominal time since dose
- trt_col
An unquoted column name for treatment group"
- conc_xlabel
A string for concentration plot xlabel
- dv_label
A string of dv label (default: bquote(Delta ~ 'QTc (ms)'))
- legend_location
String for legend position (top, bottom, left, right)
- style
A named list of arguments passed to style_plot()
Value
A 2x2 panel with concordance plots, residual distributions, Q-Q plots, and residual histograms
Examples
data_proc <- preprocess(cqtkit_data_verapamil)
fit <- fit_prespecified_model(
data_proc,
deltaQTCF,
ID,
CONC,
deltaQTCFBL,
TRTG,
TAFD,
"REML",
TRUE
)
gof_plots(
data_proc,
fit,
deltaQTCF,
CONC,
NTLD,
TRTG)