Calculating the estimated posterior mean, median and credible region (tv-PSD)
bdp_dw_est_post_stats(post_sample, rescaled_time, freq, unif_CR = FALSE)
list containing the following fields:
posterior mean and pointwise posterior median (matrices of dimension length(rescaled_time) by length(freq))
90 percent pointwise credibility interval
90 percent uniform credibility interval if unif_CR = TRUE. Otherwise NA
the posterior sample generated by bdp_dw_mcmc.
numeric vectors forming a rectangular grid on which the estimated tv-PSD is evaluated.
a Boolean value (default FALSE) indicating whether to calculate the uniform credible region rescaled_time must be in \([0,1]\) and freq must be in \([0,\pi]\).