Description Usage Arguments Details
Fit a latent class with random effects model using MCMC.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 |
X |
(Matrix) Item responses data set. |
n.sample |
Number of MCMC samples. |
n.chains |
Number of chains. |
n.thin |
Thinning value. |
n.burnin |
Number of burn-in. |
n.adapt |
Number of adaptation samples. |
raw |
(Logical) Return the randomLCA or runjags object? |
runjags.method |
Parallel or normal method. See runjags documentation. |
silent |
(Logical) Suppress output. |
quad.points |
(numeric, positive) Number of quadrature points for randomLCA fit. Check randomLCA documentation. |
calcSE |
(logical) Calculate standard error of estimates for randomLCA fit. |
gold.std |
(Logical) Is the last item/column in X the gold standard? |
method |
(DEPRECATED–Use MCMC only) EM algorithm or MCMC. |
Priors for probabilities are Unif(0, 1). For the betas, we found that a standard normal prior works best, because assigned a wider range for the betas a priori disrupts the sensitivities and specificities calculations (sticky chains at values close 1). Initial value for the prevalence is set at 0.1, the disease indicators to zero for all units.
Note that when gold.std
is TRUE
, then the last column in
X
is assumed to be the gold standard item responses. Thus, the
sensitivities and specificities attached to this item is fixed to 1.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.