example_jags_model: Example JAGS Model

Description Usage Format Examples

Description

This is an example JAGS model to use for examples in the mmcc package. The model is fit as a basic linear regression, with uniform priors on beta0 and beta1, where y is assumed to be normal, with mean mu and precision tau. The model is drawn from the vignette, "Model summaries for a Bayesian linear regression", and the code to generate it can be found in the data-raw folder.

Usage

1

Format

An object of class jags of length 8.

Examples

1
2
3
4
library(rjags)
example_jags_model$recompile()
model_dic <- dic.samples(example_jags_model, n.iter = 1000)
glance(model_dic)

njtierney/dsmcmc documentation built on Oct. 4, 2021, 10:17 p.m.