Calculates the Bayesian discrepancy measure for a precise null hypothesis.
Usage
bdm(posteriorDensityDraws, nullHypothesisValue=0)
Value
Returns the value \(\delta_H(x)\) of the BDM.
Arguments
posteriorDensityDraws
Vector of (MCMC) posterior parameter draws.
nullHypothesisValue
Parameter value of the precise null hypothesis. Defaults to zero.
Author
Riko Kelter
Details
The BDM is calculated as \(\delta_H(x):=2\cdot P(\theta \in I_H(x)|x)\) where \(I_H(x):=(m,\theta_0)\) if \(m<\theta_0\), \(I_H(x):=\{m\}\) if \(m=\theta_0\) and \(I_H(x):=(\theta_0,m)\) if \(m>\theta_0\), where \(m\) denotes the posterior median of the parameter \(\theta\), and the null hypothesis specifies \(H_0:\theta=\theta_0\).
References
For details, see: https://arxiv.org/abs/2105.13716