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 website and blog.

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$booklets
head(tia$items)
booklet_iditem_idmean_scoresd_scoremax_scorepvalueritrirn_persons
verb_aggS1DoCurse1.0820.80720.5410.5820.519316
verb_aggS1DoScold0.8320.81520.4160.6510.596316
verb_aggS1DoShout0.4680.70920.2340.5200.460316
verb_aggS1WantCurse1.1230.82720.5620.5370.468316
verb_aggS1WantScold0.9300.85020.4650.5930.528316
verb_aggS1WantShout0.7120.77720.3560.5290.464316
# IRT, extended nominal response model
f = fit_enorm(db)

head(coef(f))
item_iditem_scorebetaSE_beta
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_idbooklet_scoretheta
verb_aggdx_000000113-1.0238738
verb_aggdx_0000002280.3124831
verb_aggdx_00000034-2.3748882
verb_aggdx_000000419-0.4630604
verb_aggdx_00000057-1.7721275
verb_aggdx_0000006250.0512826
# 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_idbooklet_scorePV1PV2PV3PV4PV5
verb_aggdx_000000113-1.1129358-0.3718473-0.6251660-1.0861430-1.4627665
verb_aggdx_000000228-0.06436280.1312981-0.6255087-0.10638780.3527158
verb_aggdx_00000034-1.8603752-2.5817701-1.6376942-1.7172643-1.8129040
verb_aggdx_000000419-1.0663677-0.6810231-1.1512542-0.9481833-0.8004328
verb_aggdx_00000057-2.0083386-1.5279208-1.3307093-1.5430697-1.3224421
verb_aggdx_0000006250.20203300.20501440.2221347-0.42495110.0809038

Copy Link

Version

Install

install.packages('dexter')

Monthly Downloads

848

Version

1.5.0

License

LGPL-3

Maintainer

jesse koops

Last Published

July 5th, 2024

Functions in dexter (1.5.0)

get_booklets

Booklets entered in a project
information

Functions of theta
plausible_scores

Draw plausible test scores
plausible_values

Draw plausible values
individual_differences

Test individual differences
get_variables

Variables that are defined in the project
open_project

Open an existing project
latent_cor

Latent correlations
get_persons

Persons in a project
ratedDataProperties

Item properties in the rated data
r_score_IM

Simulation from the interaction model
profile_tables

Profile analysis
ratedData

Rated data
tia_tables

Simple test-item analysis
touch_rules

Add or modify scoring rules
start_new_project_from_oplm

Start a new project from oplm files
probability_to_pass

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

Start a new project
verbAggrRules

Scoring rules for the verbal aggression data
profile_plot

Profile plot
get_rules

Get scoring rules
get_testscores

Get test scores
plot.DIF_stats

plot method for pairwise DIF statistics
plot.p2pass

A plot method for probability_to_pass
verbAggrData

Verbal aggression data
plot.prms

Plot for the extended nominal Response model
plot.rim

A plot method for the interaction model
keys_to_rules

Derive scoring rules from keys
verbAggrProperties

Item properties in the verbal aggression data
read_oplm_par

Read item parameters from oplm PAR or CML files
standards_3dc

Standard setting
ratedDataRules

Scoring rules for the rated data
standards_db

Export a standard setting database for use by the free 3DC application
add_person_properties

Add person properties to a project
design_info

Information about the design
dexter-package

Dexter: data analyses for educational and psychological tests.
get_resp_data

Functions for developers
coef.p2pass

extract equating information
add_booklet

Add response data to a project
get_responses

Selecting data
DIF

Exploratory test for Differential Item Functioning
ability

Estimate abilities
get_design

Test design
close_project

Close a project
add_item_properties

Add item properties to a project
distractor_plot

Distractor plot
get_items

Items in a project
fit_domains

Estimate the Rasch and the Interaction model per domain
coef.prms

extract enorm item parameters
fit_enorm

Fit the extended nominal response model
fit_inter

Estimate the Interaction and the Rasch model