lcmcr | R Documentation |
Fit the latent class model of Manrique-Vallier (2016). This function initializes the MCMC chains and sampling is postponed until a call to the estimates()
function. By default, 200 independent chains are initialized.
lcmcr(data, K=10, seeds=1:200, lazy=TRUE, ...)
data |
object of class "MSEdata" representing list inclusion pattern counts. |
K |
maximum number of latent classes. |
seeds |
numeric vector of RNG seeds for the MCMC chains. A chain is initialized for vector element. |
lazy |
whether or not to wait before initializing the chains with lcmcr objects. Default is TRUE. |
... |
other parameters passed to the |
lcmcr_fit <- lcmcr(UK, seeds = 1) estimates(lcmcr_fit, mc.cores = 1)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.