R/mixmod_gibbs_functions.R
sample.z.mixmod.Rd
This function samples the latent z parameter within the Gibbs sampler.
Calls on the rmultinom1
function written in C++. Not for calling
directly by users.
sample.z.mixmod(nobs, nmaxclust, dat, ltheta, lphi, ndata.types)
numeric. The total number of rows in the dataset.
numeric. A single number indicating the maximum number of clusters to test.
A data frame containing only columns of the discretized data streams for all observations.
numeric. A vector of log-transformed estimates for parameter theta.
A list containing log-transformed estimates for each data stream of the phi parameter.
numeric. The number of data streams being analyzed.
A vector with estimates for z for each observation within
dat
.