create_jags_model: Create an JAGS model for Bayesian sensitivity analysis

View source: R/bayesian_causens.R

create_jags_modelR Documentation

Create an JAGS model for Bayesian sensitivity analysis

Description

Creates a JAGS model available as a string, or .txt file, where priors are initialized to be uninformative by default.

Usage

create_jags_model(binary_outcome, beta_uy, alpha_uz)

Arguments

binary_outcome

Boolean indicating whether the outcome is binary.

beta_uy

Prior distribution for the effect of the missing confounder U on the outcome Y.

alpha_uz

Prior distribution for the effect of the missing confounder U on the treatment assignment mechanism Z.

No inputs are given to this function (for now) since data-related information is provided in jags.model() during model initialization.


causens documentation built on June 8, 2025, 10:03 a.m.