Estimating the Bayes factor of hypothesis "k1 = 1".
bdp_dw_bayes_factor_k1(post_sample, precision = 1000)
The Savage-Dickey estimate of the Bayes factor and its theoretical upper bound. c.f. section 3.3 of Tang et al. (2023).
the posterior sample generated by bdp_dw_mcmc.
a positive integer specifying the number of terms used in approximating the normalizing constant of the prior probability mass function of k1. Default 1000.
Tang et al. (2023) Bayesian nonparametric spectral analysis of locally stationary processes ArXiv preprint <arXiv:2303.11561>