4.0.0 • Published 7 months ago

@bdelab/jscat v4.0.0

Weekly downloads
-
License
ISC
Repository
github
Last release
7 months ago

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.