pRPS: Calculate P-value and RPS

Description Usage Arguments Details Value Author(s) See Also Examples

View source: R/checkingBMC.R

Description

This function calculates p-value and relative predictive surprise (RPS) by comparing observed and reference statistics.

Usage

1
pRPS(T.obs, T.rep)

Arguments

T.obs

a value which indicates the observed statistic

T.rep

a vector which indicates the reference statistics

Details

density function is used to compute the empirical density of reference statistics.

Value

A vector of p-value and RPS.

Author(s)

Liang Jing ljing918@gmail.com

See Also

BMCT, plot_pRPS.

Examples

1
2
3
## Not run: 
pRPS(2, rnorm(1000)) 
## End(Not run)

geoCount documentation built on May 2, 2019, 5:46 p.m.

Related to pRPS in geoCount...