Learn R Programming

simcdm

The goal of simcdm is to provide flexible ways to simulate data under cognitive diagnostic models.

Installation

You can install simcdm from GitHub with:

# install.packages("remotes")
remotes::install_github("tmsalab/simcdm")

Usage

To use simcdm, load the package using:

library("simcdm")

Overview

There are four distinct sets of functions within the package:

  • Attributes: attribute_classes(), attribute_bijection(), attribute_inv_bijection(), and sim_subject_attributes().
  • Matrix: sim_q_matrix() and sim_eta_matrix()
  • Deterministic Input, Noisy And Gate (DINA): sim_dina_items() and sim_dina_attributes()
  • reduced Reparameterized Unified Model (rRUM): sim_rrum_items()

Functions that use random numbers to simulate values are named with the prefix of sim_*(). This is done to allow for functions to be quickly identified and used through autocomplete inside of the RStudio IDE or VS Code. At a later time, the attribute_*() will likely be moved to a different package.

For more details, please see the package vignettes:

Authors

James Joseph Balamuta and Steven Andrew Culpepper with contributions from Aaron Hudson.

Citing the simcdm package

To ensure future development of the package, please cite simcdm package if used during the analysis or simulations. Citation information for the package may be acquired by using in R:

citation("simcdm")

License

GPL (>= 2)

Copy Link

Version

Install

install.packages('simcdm')

Monthly Downloads

235

Version

0.1.2

License

GPL (>= 2)

Issues

Pull Requests

Stars

Forks

Maintainer

James Balamuta

Last Published

November 29th, 2023

Functions in simcdm (0.1.2)

sim_eta_matrix

Generate ideal response \(\eta\) Matrix
sim_dina_attributes

Simulate a DINA Model's \(\eta\) Matrix
sim_q_matrix

Generate a Random Identifiable Q Matrix
attribute_inv_bijection

Perform an Inverse Bijection of an Integer to Attribute Pattern
attribute_classes

Simulate all the Latent Attribute Profile \(\mathbf{\alpha}_c\) in Matrix form
attribute_bijection

Constructs Unique Attribute Pattern Map
simcdm-package

simcdm: Simulate Cognitive Diagnostic Model ('CDM') Data
sim_subject_attributes

Simulate Subject Latent Attribute Profiles \(\mathbf{\alpha}_c\)
sim_rrum_items

Generate data from the rRUM
sim_dina_class

Simulate Binary Responses for a DINA Model
sim_dina_items

Simulation Responses from the DINA model