Learn R Programming

tidyvpc (version 1.1.0)

vpcstats: vpcstats

Description

Compute VPC statistics

Usage

vpcstats(o, ...)

# S3 method for tidyvpcobj vpcstats( o, qpred = c(0.05, 0.5, 0.95), ..., conf.level = 0.95, quantile.type = 7 )

Arguments

o

tidyvpc object

...

Other arguments to include

qpred

Numeric vector of length 3 specifying quantile prediction interval

conf.level

Numeric specifying confidence level

quantile.type

Numeric indicating quantile type. See quantile

Value

Updates tidyvpcobj with stats data.table object which contains the following columns:

  • bin: the resulting bin value as specified in `binning()` function

  • xbin: the midpoint x-value of the observed data points in the bin as specified in `xbin` argument of `binning()` function

  • qname: the quantiles specified in `qpred`

  • y: the observed y value for the specified quantile

  • lo: the lower bound of specified confidence interval for y value in simulated data

  • md: the median y value in simulated data

  • hi: the upper bound of specified confidence interval for y value in simulated data

Details

Compute predictional interval statistics for VPC

See Also

observed simulated censoring stratify binning binless predcorrect