Description Usage Arguments Details Value
Repeatedly fit the LC, LCRE and FM model onto a specific scenaria.
1 2 3 4 5 6 7 8 9 10 11 |
B |
Number of replications |
n |
(numeric) Sample size |
tau |
(numeric, between 0 and 1) Prevalence |
miss.prop |
(numeric, between 0 and 1) Missing proportion |
data.gen |
The data generating mechanism |
lc.method |
(DEPRECATED) The latent class model estimation method |
lcre.method |
(DEPRECATED) The latent class model with random effects estimation method |
pb |
Not used |
object |
A diagaccSim1 object |
The framework for the simulation is as follows:
Randomly
generate a specific data set according to the data.gen
mechanism and
the settings as per n
, tau
, and miss.prop
.
Fit a LC, LCRE and FM model onto the data set.
Repeat steps 1–2 a total of
B
number of times.
Note that it is possible to continue on a simulation run by calling the saved
object
in the argument. See the example section.
A diagaccSim1 object. It is a list of length four containing the following items:
LC
: A list of length B
containing the LC model fit using the fit_lc()
function.
LCRE
: A list of length B
containing the LCRE model fit using
the fit_lcre()
function.
FM
: A list of length B
containing the LC model fit using the fit_fm()
function.
sim.settings
: A list of length B
containing the LC model fit using the fit_lc()
function.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.