A Bayesian p-value (p) is here defined in terms of the quantile-based
(1-p) * 100% credible interval (CRI) that
just includes a threshold (Kery and Schaub 2011).
By default a p-value of 0.05 indicates that the 95% CRI just includes 0.
Usage
pvalue(x, threshold = 0, na_rm = FALSE)
Value
A number between 0 and 1.
Arguments
x
A numeric vector of MCMC values.
threshold
A number of the threshold value.
na_rm
A flag specifying whether to remove missing values.