Learn R Programming

CNPBayes (version 1.2.2)

BatchModel: Create an object for running hierarchical MCMC simulations.

Description

Create an object for running hierarchical MCMC simulations.

Usage

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

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

Run the code above in your browser using DataLab