weight_fc_jags: Probability weights in JAGS

View source: R/weight_fc_jags.R

weight_fc_jagsR Documentation

Probability weights in JAGS

Description

Computes probability weights by fast computation (Hunanyan et al., 2021) in JAGS.

Usage

weight_fc_jags(jags.obj, w)

Arguments

jags.obj

character string, the name of the JAGS object fitted with rjags with the base model (non-weighted likelihood, w = 1)

w

numeric, weighting factor to weight the likelihood. w attains values close to 1. The default value is w = 1 \pm δ, where δ = 0.01.

Details

A fast computation formula is derived (Hunanyan et al., 2021) to estimate the weighted samples for the model fitted in JAGS.

Value

numeric vector

References

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 (under review). https://arxiv.org/abs/2109.11870.

See Also

expectation_fc, sd_fc, extract_descriptives_jags


hunansona/ed4bhm documentation built on June 15, 2022, 6:42 p.m.