Description Usage Arguments Value Author(s)
The StanLCDM.run function aims to automate runing Stan program to estimate LDCM.
1 2 3 4 5 6 7 8 9 10 11 12 | StanLCDM.run(
Qmatrix,
response.matrix,
script.path = NA,
save.path = getwd(),
save.name = "LCDM_uninf",
iter = 1000,
warmup = 0,
chain.num = 3,
init.list = "random",
control.list = NA
)
|
Qmatrix |
the Q-matrix specified for the LCDM |
response.matrix |
the data matrix. |
script.path |
name the .stan |
save.path |
the directory the Stan Script file save to. |
save.name |
the file name for Stan script |
iter |
number of iteration for MCMC estimation. 1000 by default. |
warmup |
number of iterations for warmup. |
chain.num |
number of MCMC chains |
init.list |
random by default. It could be "cdm" or "random". If "cdm" was chosen, the starting values will be estimated using maximum-likehood based estimation. |
control.list |
constrains put on the LCDM model. |
MCMC stan object.
Zhehan Jiang, University of Alabama, zjiang17@ua.edu
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.