{"id":23069539,"url":"https://github.com/tmsalab/dina","last_synced_at":"2025-08-15T13:32:14.832Z","repository":{"id":56937027,"uuid":"89425962","full_name":"tmsalab/dina","owner":"tmsalab","description":"Estimate the Deterministic Input, Noisy \"And\" Gate (DINA) cognitive diagnostic model parameters using the Gibbs sampler described by Culpepper (2015) \u003cdoi:10.3102/1076998615595403\u003e.","archived":false,"fork":false,"pushed_at":"2020-07-31T16:01:59.000Z","size":107,"stargazers_count":13,"open_issues_count":4,"forks_count":5,"subscribers_count":4,"default_branch":"master","last_synced_at":"2024-03-26T10:03:10.040Z","etag":null,"topics":["armadillo","bayesian","gibbs-sampler","irt","item-response-theory","psychometrics","rcpp","rcpparmadillo"],"latest_commit_sha":null,"homepage":"https://tmsalab.github.io/dina","language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/tmsalab.png","metadata":{"files":{"readme":"README.Rmd","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-04-26T01:57:18.000Z","updated_at":"2023-12-01T18:40:58.000Z","dependencies_parsed_at":"2022-08-21T01:10:13.928Z","dependency_job_id":null,"html_url":"https://github.com/tmsalab/dina","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tmsalab%2Fdina","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tmsalab%2Fdina/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tmsalab%2Fdina/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tmsalab%2Fdina/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tmsalab","download_url":"https://codeload.github.com/tmsalab/dina/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":229915684,"owners_count":18144014,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["armadillo","bayesian","gibbs-sampler","irt","item-response-theory","psychometrics","rcpp","rcpparmadillo"],"created_at":"2024-12-16T06:15:52.918Z","updated_at":"2024-12-16T06:15:53.632Z","avatar_url":"https://github.com/tmsalab.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"---\noutput: github_document\n---\n\n\u003c!-- README.md is generated from README.Rmd. Please edit that file --\u003e\n\n```{r, echo = FALSE}\nknitr::opts_chunk$set(\n  collapse = TRUE,\n  comment = \"#\u003e\",\n  fig.path = \"README-\"\n)\n```\n\n# dina\n\n\u003c!-- badges: start --\u003e\n[![R build status](https://github.com/tmsalab/dina/workflows/R-CMD-check/badge.svg)](https://github.com/tmsalab/dina/actions)\n[![Package-License](http://img.shields.io/badge/license-GPL%20(%3E=2)-brightgreen.svg?style=flat)](http://www.gnu.org/licenses/gpl-2.0.html)\n[![CRAN Version Badge](http://www.r-pkg.org/badges/version/dina)](https://cran.r-project.org/package=dina)\n[![CRAN Status](https://cranchecks.info/badges/worst/dina)](https://cran.r-project.org/web/checks/check_results_dina.html)\n[![RStudio CRAN Mirror's Monthly Downloads](http://cranlogs.r-pkg.org/badges/dina?color=brightgreen)](http://www.r-pkg.org/pkg/dina)\n[![RStudio CRAN Mirror's Total Downloads](http://cranlogs.r-pkg.org/badges/grand-total/dina?color=brightgreen)](http://www.r-pkg.org/pkg/dina)\n[![Coverage status](https://codecov.io/gh/tmsalab/dina/branch/master/graph/badge.svg)](https://codecov.io/github/tmsalab/dina?branch=master)\n\u003c!-- badges: end --\u003e\n\nEstimate the Deterministic Input, Noisy And Gate (DINA) cognitive diagnostic\nmodel parameters using the Gibbs sampler described by Culpepper (2015) \n\u003cdoi: 10.3102/1076998615595403\u003e.\n\n## Installation\n\nYou can install `dina` from CRAN using:\n\n```{r cran-installation, eval = FALSE}\ninstall.packages(\"dina\")\n```\n\nOr, you can be on the cutting-edge development version on GitHub using:\n\n```{r gh-installation, eval = FALSE}\nif(!requireNamespace(\"devtools\")) install.packages(\"devtools\")\ndevtools::install_github(\"tmsalab/dina\")\n```\n\n## Usage\n\nTo use the `dina` package, load it into _R_ using:\n\n```{r example, message = FALSE}\nlibrary(\"dina\")\n```\n\nFrom there, the DINA CDM can be estimated using:\n\n```{r dina-est, eval = FALSE}\ndina_model = dina(\u003cdata\u003e, \u003cq\u003e, chain_length = 10000)\n```\n\nTo simulate item data under DINA, use:\n\n```{r dina-sim, eval = FALSE}\n# Set a seed for reproducibility\nset.seed(888)\n\n# Setup Parameters\nN = 15   # Number of Examinees / Subjects\nJ = 10   # Number of Items\nK = 2    # Number of Skills / Attributes\n\n# Assign slipping and guessing values for each item\nss = gs = rep(.2, J)\n\n# Simulate identifiable Q matrix\nQ = sim_q_matrix(J, K)\n\n# Simulate subject attributes\nsubject_alphas = sim_subject_attributes(N, K)\n\n# Simulate Item Data\nitems_dina = sim_dina_items(subject_alphas, Q, ss, gs)\n```\n\n## Authors\n\nSteven Andrew Culpepper and James Joseph Balamuta\n\n## Citing the `dina` package\n\nTo ensure future development of the package, please cite `dina`\npackage if used during an analysis or simulation studies. Citation information\nfor the package may be acquired by using in *R*:\n\n```{r, eval = FALSE}\ncitation(\"dina\")\n```\n\n## License\n\nGPL (\u003e= 2)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftmsalab%2Fdina","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftmsalab%2Fdina","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftmsalab%2Fdina/lists"}