Learn R Programming

CNPBayes (version 1.2.2)

MarginalModel: Create an object for running marginal MCMC simulations.

Description

Create an object for running marginal MCMC simulations.

Usage

MarginalModel(data = numeric(), k = 2, hypp, mcmc.params)

Arguments

data
the data for the simulation.
k
An integer value specifying the number of latent classes.
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 'MarginalModel'

Examples

Run this code
     model <- MarginalModel(data=rnorm(10), k=1)

Run the code above in your browser using DataLab