@bdelab/jscat
Advanced tools
Comparing version 1.0.2 to 1.0.3
{ | ||
"name": "@bdelab/jscat", | ||
"version": "1.0.2", | ||
"version": "1.0.3", | ||
"description": "A library to support IRT-based computer adaptive testing in JavaScript", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
@@ -12,11 +12,11 @@ # jsCAT: Computer Adaptive Testing in JavaScript | ||
```JavaScript | ||
import {jsCAT} from '@bdelab/jscat'; | ||
import {normal, estimateAbility, findNextItem} from '@bdelab/jscat'; | ||
// declare prior if you choose to use EAP method | ||
const prior = jsCAT.normal(); | ||
const prior = normal(); | ||
// for each adaptive trial, you will use the following functions | ||
const theta = jsCAT.estimateAbility(answers, zetas, method, minTheta, maxTheta, prior); | ||
const theta = estimateAbility(answers, zetas, method, minTheta, maxTheta, prior); | ||
const nextStimulus = jsCAT.findNextItem(stimuli, theta, method, deepCopy); | ||
const nextStimulus = findNextItem(stimuli, theta, method, deepCopy); | ||
``` | ||
@@ -23,0 +23,0 @@ |
27929