Learn R Programming

geoCount (version 1.150120)

pRPS: 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

Value

A vector of p-value and RPS.

Details

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

See Also

BMCT, plot_pRPS.

Examples

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

Run the code above in your browser using DataLab