Skip to content

gof_vpc_plot

Description

Performs a visual predictive check and plots the results

Usage

gof_vpc_plot(
data,
fit,
xdata_col,
dv_col,
conf_int = 0.9,
nruns = 500,
nbins = 10,
type = 2,
style = list(
)
)

Arguments

NameDescription
dataa dataframe containing the QTc data
fitthe model fit object
xdata_colan unquoted column name for independent variable
dv_colan unquoted column name for dependent variable
conf_inta fractional numeric for confidence interval (quantiles of 5/95th quantiles), default = 0.9
nrunsinteger number of simulations to run
nbinsinteger number of bins to break independent variable into - OR - a user specified vector for non-uniform binning
typeinteger for type parameter of stats::quantile
stylea named list of any argument that can be passed to style_plot

Returns

a plot of the VPC results

Examples

data_proc <- preprocess(data)
fit <- fit_prespecified_model(
data_proc,
deltaQTCF,
ID,
CONC,
deltaQTCFBL,
TRTG,
TAFD,
"REML",
TRUE
)
gof_vpc_plot(data_proc, fit, CONC, deltaQTCF, nruns = 2)