Learn R Programming

AntMAN (version 1.1.0)

AM_mix_hyperparams_multiber: multivariate Bernoulli mixture hyperparameters (Latent Class Analysis)

Description

Generate a configuration object that defines the prior hyperparameters for a mixture of multivariate Bernoulli. If the dimension of the data is P, then the prior is a product of P independent Beta distributions, Beta(\(a_{0i},b_{0i}\)). Therefore, the vectors of hyperparameters, a0 and b0, are P-dimensional. Default is (a0= c(1,....,1),b0= c(1,....,1)).

Usage

AM_mix_hyperparams_multiber(a0, b0)

Arguments

a0

The a0 hyperparameters.

b0

The b0 hyperparameters.

Value

An AM_mix_hyperparams object. This is a configuration list to be used as mix_kernel_hyperparams argument for AM_mcmc_fit.

Examples

Run this code
# NOT RUN {
AM_mix_hyperparams_multiber (a0= c(1,1,1,1),b0= c(1,1,1,1))
# }

Run the code above in your browser using DataLab