Learn R Programming

⚠️There's a newer version (1.6.2) of this package.Take me there.

Dexter

Dexter is an R package for psychometric analysis of data from educational and psychological tests. Dexter typically works with project database files saved on disk.

Installation

install.packages('dexter')

If you encounter a bug, please post a minimal reproducible example on github. We post news and examples on a blog, it's also the place for general questions.

Example

library(dexter)
# start a project and fill it with data
# verbAggrRules and verbAggrData are example datasets provided with dexter

db = start_new_project(verbAggrRules, "verbAggression.db")
add_booklet(db, verbAggrData, booklet_id = "verb_agg")

# Classical test theory
tia = tia_tables(db)

tia$testStats
booklet_idnItemsalphameanPmeanRitmeanRirmaxTestScoreN
verb_agg240.8880.3390.5270.46848316
head(tia$itemStats)
booklet_iditem_idmeanScoresdScoremaxScorepvalueritrirn
verb_aggS1DoCurse1.0820.80820.5410.5820.519316
verb_aggS1DoScold0.8320.81720.4160.6510.596316
verb_aggS1DoShout0.4680.71020.2340.5200.460316
verb_aggS1WantCurse1.1230.82820.5620.5370.468316
verb_aggS1WantScold0.9300.85220.4650.5930.528316
verb_aggS1WantShout0.7120.77820.3560.5290.464316
# IRT, extended nominal response model
f = fit_enorm(db)

head(coef(f))
item_iditem_scorebetaSE_b
S1DoCurse1-1.34221400.1541565
S1DoCurse2-0.63750150.1418423
S1DoScold1-0.67020360.1429057
S1DoScold2-0.25898550.1579467
S1DoShout10.32543260.1480166
S1DoShout20.36875740.2099654
# ability estimates per person
abl = ability(db, parms = f)
head(abl)
booklet_idperson_idsumScoretheta
verb_aggdxP113-1.0218323
verb_aggdxP109-1.4832759
verb_aggdxP10014-0.9204799
verb_aggdxP1010-Inf
verb_aggdxP10212-1.1276084
verb_aggdxP1038-1.6191967
# ability estimates without item S1DoScold
abl2 = ability(db, parms = f, item_id != "S1DoScold")

# plausible values

pv = plausible_values(db, parms = f, nPV = 5)
head(pv)
booklet_idperson_idsumScorePV1PV2PV3PV4PV5
verb_aggdxP113-0.8830828-0.7066814-0.7703465-1.0441590-0.8918823
verb_aggdxP109-1.5388849-1.0014150-1.7249607-1.3372498-1.5627987
verb_aggdxP10014-0.6678893-1.4039775-0.6161149-0.9249503-0.7607182
verb_aggdxP1010-2.3034185-3.0623911-2.3793639-3.1658178-3.3999772
verb_aggdxP10212-1.0434515-1.5317991-1.1518701-1.0103475-1.0057779
verb_aggdxP1038-2.0467553-1.5357100-2.0598186-1.2366479-1.7367032

Contributing

Contributions are welcome but please check with us first about what you would like to contribute.

Copy Link

Version

Install

install.packages('dexter')

Monthly Downloads

848

Version

0.8.5

License

GPL-3

Maintainer

Ivailo Partchev

Last Published

April 25th, 2019

Functions in dexter (0.8.5)

close_project

Close a project
coef.p2pass

extract equating information
design_as_network

Deprecated test design functions
design_info

Information about the design
get_items

Items in a project
get_person_properties

Person properties in a project
plot.rim

A plot method for the interaction model
plot3DC

Show 3DC plots
ratedDataProperties

Item properties in the rated data
ratedDataRules

Scoring rules for the rated data
touch_rules

Add or modify scoring rules
verbAggrData

Verbal aggression data
coef.prms

extract enorm item parameters
create3DC

Create a database for the 3DC standard setting application
fit_inter

Estimate the Interaction and the Rasch model
get_booklets

Booklets entered in a project
add_person_properties

Add person properties to a project
information

Functions of theta
add_booklet

Add response data to a project
add_test3DC

Add a standard setting booklet to a 3DC database
get_testscores

Provide test scores
get_rules

Get scoring rules
add_item_properties

Add item properties to a project
keys_to_rules

Derive scoring rules from keys
fit_domains

Estimate the Rasch and the Interaction model per domain
read_oplm_par

Read item parameters from oplm PAR or CML files
start_new_project

Start a new project
fit_enorm

Fit the extended nominal response model
iTIA

Interactive test-item analysis
individual_differences

Test individual differences
plausible_values

Draw plausible values
plot.DIF_stats

plot method for DIF
start_new_project_from_oplm

Start a new project from oplm files
tia_tables

Simple test-item analysis
DIF

Exploratory test for Differential Item Functioning
verbAggrProperties

Item properties in the verbal aggression data
ability

Estimate abilities
get_design

Test design
verbAggrRules

Scoring rules for the verbal aggression data
get_item_properties

Item properties in a project
get_persons

Persons in a project
dexter-package

Dexter: data analyses for educational and psychological tests.
distractor_plot

Distractor plot
get_variables

Variables that are defined in the project
iModels

Interactive model display
get_responses

Selecting data
open_project

Open an existing project
plausible_scores

Generate plausible testscores
plot.p2pass

A plot method for probability_to_pass
plot.prms

Plot for the extended nominal Response model
profiles

Profile analysis
probability_to_pass

The probability to pass on a reference test given a score on a new booklet
profile_plot

Profile plot
ratedData

Rated data