hiergibbs: Gibbs sampling for a hierarchical regression model

Description Usage Arguments Value Author(s) Examples

Description

Implements Gibbs sampling for estimating a two-way table of means under a hierarchical regression model.

Usage

1

Arguments

data

data matrix with columns observed sample means, sample sizes, and values of two covariates

m

number of cycles of Gibbs sampling

Value

beta

matrix of simulated values of regression vector

mu

matrix of simulated values of cell means

var

vector of simulated values of second-stage prior variance

Author(s)

Jim Albert

Examples

1
2
3

Example output



LearnBayes documentation built on May 1, 2019, 7:03 p.m.