pRPS {geoCount}R Documentation

Calculate P-value and RPS

Description

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

Usage

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

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

[Package geoCount version 1.150120 Index]