Cognitive diagnostic
models

With R and Stan

W. Jake Thompson, Ph.D.

Welcome!

Introductions



Jake Thompson
Assistant Director of Psychometrics
ATLAS | University of Kansas

Acknowledgements


The research reported here was supported by the Institute of Education Sciences, U.S. Department of Education, through Grant R305D210045 to the University of Kansas. The opinions expressed are those of the authors and do not represent the views of the the Institute or the U.S. Department of Education.

Logo for the Institute of Education Sciences

Schedule

Part 1: Foundations

Brief introduction to DCMs

Theoretical underpinnings

Part 2: Applications

Model estimation and evaluation

Materials

All materials are available on the workshop website:

https://stancon2023.measr.info

Installation

  • Required
    • R (≥ 4.2)
    • rstan (≥ 2.21.8)
    • measr (≥ 0.3.1)
  • Recommended
    • RStudio (≥ 2023.03.1+446)
    • cmdstanr (≥ 0.5.3)
    • CmdStan (≥ 2.32.2)

Copy and run

install.packages(c("measr", "fs", "usethis"))


# Optional
install.packages(c("rstan", "StanHeaders", "cmdstanr"),
                 repos = c("https://mc-stan.org/r-packages", getOption("repos")))

## check toolchain
cmdstanr::check_cmdstan_toolchain()
cmdstanr::install_cmdstan(cores = 2)

For help installing RStan, CmdStanR, or configuring the toolchain, see the prework page.