BatchModel: Create an object for running hierarchical MCMC simulations.

Description Usage Arguments Value Examples

View source: R/methods-BatchModel.R

Description

Create an object for running hierarchical MCMC simulations.

Usage

1
BatchModel(data = numeric(), k = 2L, batch, hypp, mcmc.params)

Arguments

data

the data for the simulation.

k

An integer value specifying the number of latent classes.

batch

a vector of the different batch numbers (must be sorted)

hypp

An object of class 'Hyperparameters' used to specify the hyperparameters of the model.

mcmc.params

An object of class 'McmcParams'

Value

An object of class 'BatchModel'

Examples

1
     model <- BatchModel(rnorm(10), k=1, batch=rep(1:2, each=5))

CNPBayes documentation built on May 31, 2017, 2:57 p.m.