Learn R Programming

bbricks (version 0.1.4)

dAllIndicators: Get the probabilities of all possible values of the hidden indicator variables from the DP family objects.

Description

This is a generic function that will get the probabilities of all possible values of the hidden indicator variables. i.e. for the model structure: $$theta|gamma_1 \sim H1(gamma_1)$$ $$z|gamma_2 \sim H2(gamma_2)$$ $$x|theta,z \sim F(theta_z)$$ get p(z|x,gamma_2,gamma_1) for all possible values of z. Where H2 is either CatDP, CatHDP, CatHDP2, DP, HDP, or HDP2.

Usage

dAllIndicators(obj, ...)

Arguments

obj

A "CatDP", "CatHDP", "CatHDP2", "DP", "HDP", or a "HDP2" object used to select a method.

...

further arguments passed to or from other methods.

Value

a data.frame of indicator values and their corresponding probabilities.