@bdelab/jscat
TypeScript icon, indicating that this package has built-in type declarations

4.0.0 • Public • Published

Test and lint Coverage Status npm version

jsCAT: Computer Adaptive Testing in JavaScript

A library to support IRT-based computer adaptive testing in JavaScript

Installation

You can install jsCAT from npm with

npm i @bdelab/jscat

Usage

// import jsCAT
import { Cat, normal } from '@bdelab/jscat';

// declare prior if you choose to use EAP method
const currentPrior = normal();

// create a Cat object 
const cat = new CAT({method: 'MLE', itemSelect: 'MFI', nStartItems: 0, theta: 0, minTheta: -6, maxTheta: 6, prior: currentPrior})

// update the abilitiy estimate by adding test items 
cat.updateAbilityEstimate(zeta, answer);

const currentTheta = cat.theta;

const currentSeMeasurement = cat.seMeasurement;

const numItems = cat.nItems;

// find the next available item from an input array of stimuli based on a selection method

const stimuli = [{difficulty: -3,  item: 'item1'}, {difficulty: -2,  item: 'item2'}];

const nextItem = cat.findNextItem(stimuli, 'MFI');

References

Lucas Duailibe, irt-js, (2019), GitHub repository, https://github.com/geekie/irt-js

License

jsCAT is distributed under the ISC license.

Package Sidebar

Install

npm i @bdelab/jscat

Weekly Downloads

1,704

Version

4.0.0

License

ISC

Unpacked Size

52.6 kB

Total Files

32

Last publish

Collaborators

  • aryamant
  • lmfg
  • emily-ejag
  • kylemontville
  • zio-4
  • kellyel
  • anyawma
  • richiehalford