knitr::opts_chunk$set(
  echo = TRUE,
  collapse = TRUE,
  comment = "#>",
  fig.path = "README-"
  )

StanDCM

Travis build status R build status

Overview

StanDCM is a helpful tool of estimating Diagnostic Classification Models (DCM) via Stan

Learning resources

Features of the package

Installation

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

Usage

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)


JihongZ/StanDCM documentation built on June 27, 2020, 7:51 a.m.