Description Usage Arguments Value
View source: R/mixmod_gibbs_functions.R
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.
1 | sample.z.mixmod(nobs, nmaxclust, dat, ltheta, lphi, ndata.types)
|
nobs |
numeric. The total number of rows in the dataset. |
nmaxclust |
numeric. A single number indicating the maximum number of clusters to test. |
dat |
A data frame containing only columns of the discretized data streams for all observations. |
ltheta |
numeric. A vector of log-transformed estimates for parameter theta. |
lphi |
A list containing log-transformed estimates for each data stream of the phi parameter. |
ndata.types |
numeric. The number of data streams being analyzed. |
A vector with estimates for z for each observation within
dat
.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.