knitr::opts_chunk$set( echo = TRUE, collapse = TRUE, comment = "#>", fig.path = "README-" )
StanDCM is a helpful tool of estimating Diagnostic Classification Models (DCM) via Stan
To install this package from source:
1) Users may need to install the rstan in order to execute the functions of StanDCM package.
2) Windows users should avoid using space when installing rstan.
3) After installing rstan package, users can use the lines beblow to install StanDCM package.
# the development version from GitHub # install.packages("devtools") devtools::install_github("JihongZ/StanDCM")
The parametric version of DCM R package named GDINA can be found in R CRAN at here
You can fit a LCDM model:
mod.LCDM <- StanLCDM.run(Qmatrix = Qmatrix, response.matrix = respMatrix, iter = 5000, warmup = 1000, chain.num = 5) summary(mod.LCDM)
or you can fit a DINA model by simply using:
mod.DINA <- StanDINA.run(Qmatrix = Qmatrix, response.matrix = respMatrix, iter = 5000, warmup = 1000, chain.num = 5)
Posterior predictive model checking (PPMC) could be also conducted:
StanDCM.ppmc(mod.LCDM, respMatrix, n.sim = 500, n.burnin = 100)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.