BMCT {geoCount} | R Documentation |
This function conducts Bayesian model checking by comparing observed and reference data sets and reveals the result via "p-value" and "RPS" (as well as the plot).
BMCT(Y.obs, Y.rep, funcT, ifplot = FALSE)
Y.obs |
a vector which indicates the observed data set |
Y.rep |
a matrix which indicates the reference data sets |
funcT |
a function which defines the dignostic statistic |
ifplot |
a logical value which indicates whether plot the dignostic statistics |
A vector of p-value and RPS.
Liang Jing ljing918@gmail.com
repYeb
, repYpost
, pRPS
, plot_pRPS
## Not run: Yrep.eb <- repYeb(N.sim=2000, loc, L, res.m, est = "mode") funcT <- function(Y){ max(Y)-min(Y) } BMCT(Y, Yrep.eb, funcT, ifplot=TRUE) ## End(Not run)