Compute VPC statistics
Compute prediction interval statistics for VPC.
vpcstats(o, ...) ## S3 method for class 'tidyvpcobj' vpcstats( o, vpc.type = c("continuous", "categorical"), qpred = c(0.05, 0.5, 0.95), ..., conf.level = 0.95, quantile.type = 7 )
o
: A tidyvpcobj
....
: Other arguments to include.vpc.type
: Character specifying type of VPC (e.g., "continuous"
(Default) or "categorical"
).qpred
: Numeric vector of length 3 specifying quantile prediction interval. Only applicable for vpc.type = "continuous"
.conf.level
: Numeric specifying confidence level.quantile.type
: Numeric indicating quantile type. See quantile
.Updates tidyvpcobj
with stats
data.table
object, which contains the following columns:
bin
: Resulting bin value as specified in binning()
functionxbin
: Midpoint x-value of the observed data points in the bin as specified in xbin
argument of binning()
functionqname
: Quantiles specified in qpred
. Only returned if vpc.type = "continuous"
pname
: Categorical probability names. Only returned if vpc.type = "categorical"
y
: Observed y value for the specified quantilelo
: Lower bound of specified confidence interval for y value in simulated datamd
: Median y value in simulated datahi
: Upper bound of specified confidence interval for y value in simulated dataobserved
simulated
censoring
stratify
binning
binless
predcorrect