pRPS {geoCount} | R Documentation |
This function calculates p-value and relative predictive surprise (RPS) by comparing observed and reference statistics.
pRPS(T.obs, T.rep)
T.obs |
a value which indicates the observed statistic |
T.rep |
a vector which indicates the reference statistics |
density
function is used to compute the empirical density of reference statistics.
A vector of p-value and RPS.
Liang Jing ljing918@gmail.com
## Not run: pRPS(2, rnorm(1000)) ## End(Not run)