gof_vpc_plot.RdPerforms a visual predictive check and plots the results
gof_vpc_plot(
data,
fit,
xdata_col,
dv_col,
conf_int = 0.9,
nruns = 500,
nbins = 10,
type = 2,
style = list()
)A data frame containing C-QT analysis dataset
An nlme::lme model object from model fitting
An unquoted column name for independent variable
An unquoted column name for dependent variable
Numeric confidence interval level (default: 0.9)
Integer number of simulations to run
Integer number of bins to break independent variable into - OR - a user specified vector for non-uniform binning
Integer for type parameter of stats::quantile
A named list of arguments passed to style_plot()
a plot of the VPC results
data_proc <- preprocess(cqtkit_data_verapamil)
fit <- fit_prespecified_model(
data_proc,
deltaQTCF,
ID,
CONC,
deltaQTCFBL,
TRTG,
TAFD,
"REML",
TRUE
)
gof_vpc_plot(data_proc, fit, CONC, deltaQTCF, nruns = 2)
#> Warning: Your xdata quantiles had duplicates. Filtering for x values > 0