pvalue {extras} | R Documentation |
Bayesian P-Value
Description
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)
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. |
Value
A number between 0 and 1.
References
Kery, M., and Schaub, M. 2011. Bayesian population analysis using WinBUGS: a hierarchical perspective. Academic Press, Boston. Available from https://www.vogelwarte.ch/de/projekte/publikationen/bpa/.
See Also
Other summary:
kurtosis()
,
lower()
,
pzeros()
,
skewness()
,
svalue()
,
upper()
,
variance()
,
xtr_mean()
,
xtr_median()
,
xtr_sd()
,
zeros()
,
zscore()
Examples
pvalue(as.numeric(0:100))
[Package extras version 0.6.1 Index]