R/data-example-jags-model.R

#' Example JAGS Model
#'
#' 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.
#' @name example_jags_model
#' @docType data
#' @usage data(example_jags_model)
#' @keywords data
#' @examples
#' library(rjags)
#' example_jags_model$recompile()
#' model_dic <- dic.samples(example_jags_model, n.iter = 1000)
#' glance(model_dic)
"example_jags_model"
njtierney/mmcc documentation built on Oct. 5, 2021, 12:14 a.m.