BMCT: Perform Bayesian Model Checking

Description Usage Arguments Value Author(s) See Also Examples

Description

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).

Usage

1
BMCT(Y.obs, Y.rep, funcT, ifplot = FALSE)

Arguments

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

Value

A vector of p-value and RPS.

Author(s)

Liang Jing ljing918@gmail.com

See Also

repYeb, repYpost, pRPS, plot_pRPS

Examples

1
2
3
4
5
## 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)

geoCount documentation built on May 2, 2019, 12:38 a.m.

Related to BMCT in geoCount...