Skip to contents

Function for performing Bayesian inference using rjags

Usage

BayesInf(tot, y, X, C, cl, K, eps = 0.001, modelFilePath = NA)

Arguments

tot

Total sample size

y

Response

X

Treatment labels

C

Number of clusters

cl

Cluster label for each individual

K

Number of MCMC samples

eps

Analysis Gamma prior parameters

modelFilePath

Relative path to JAGS model file

Value

MCMC samples