View source: R/expectation_fc.R
expectation_fc | R Documentation |
Computes the expectation of an MCMC weighted sample.
expectation_fc(ISweight, samples)
ISweight |
numeric vector, the importance sampling weights |
samples |
the MCMC samples to calculate the expectation for, which are extracted from the JAGS fit |
A fast computation formula is derived (Hunanyan et al., 2021) to estimate the weighted samples for the model fitted in JAGS.
numeric, expectation of the weighted MCMC sample
Hunanyan, S., Roos, M., Plummer, M., Rue, H. (2021). Quantification of empirical determinacy: the impact of likelihood weighting on posterior location and spread in Bayesian meta-analysis estimated with JAGS and INLA. Bayesian Analaysis (in preparation)
sd_fc
, extract_descriptives_jags
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.