Description Usage Arguments Value Author(s) Examples
The StanCRUM.run Function to automate Stan code generation for LCDMs with binary responses
1 2 3 4 5 6 7 8 9 10 11 12 | StanCRUM.run(
Qmatrix,
response.matrix,
script.path = NA,
save.path = getwd(),
save.name = "CRUM_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 response matrix |
script.path |
the path to save the .stan file to somewhere; the default path is getwd() |
save.path |
the path to save the .stan file to somewhere; the default path is getwd() |
save.name |
name the .stan |
iter |
name the .stan |
warmup |
number of warmup iterations |
chain.num |
number of MCMC chains. Default is 3. |
init.list |
initial variables. Default is random. Other options include cdm |
control.list |
the control values |
a. stan file saved at the specified path
Zhehan Jiang, University of Alabama, zjiang17@ua.edu
1 2 3 4 5 6 | ## Not run:
#----------- CRUM model-----------#
mod1<-StanCRUM.run(Qmatrix, response.matrix, iter=2000, init.list='cdm', chain.num = 3)
summary(mod1)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.