Learn R Programming

TestGardener

R code for analyzing data from tests and rating scales.

January 9, 2024 A major cleanup of the code was required to solve the issue that the plot of the last item was greatly distorted.

March 15, 2024 A number of bugs fixed.

September 16, 2024 Bspline basis functions will return values of 0 if the order of the spline is equal to the number of basis functions. This is especially helpful for the elementary two-basis case that is the spline basis version of the classic nominal model used by Darrell Bock for modelling multi-option tests and rating scales.

Copy Link

Version

Install

install.packages('TestGardener')

Monthly Downloads

314

Version

3.3.6

License

GPL (>= 2)

Maintainer

James Ramsay

Last Published

October 14th, 2025

Functions in TestGardener (3.3.6)

ICC_plot

Plot probability and surprisal curves for test or scale items.
Sbinsmth

Estimate the option probability and surprisal curves.
Quant_13B_problem_parmList

Parameter list for 24 items from the quantitative SweSAT subtest.
Sbinsmth.init

Initialize surprisal smoothing of choice data.
SimulateData

Simulate Choice Data from a Previous Analysis
Sensitivity_plot

Plots all the sensitivity curves for selected items or questions.
Sbinsmth_nom

List vector containing numbers of options and boundaries.
Quant_13B_problem_key

Option information for the short form of the SweSAT Quantitative test.
Quant_13B_problem_infoList

Arclength or information parameter list for 24 items from the quantitative SweSAT subtest.
Quant_13B_problem_dataList

List of objects essential for an analysis of the abbreviated SweSAT Quantitative multiple choice test.
Spca

Functional principal components analysis of information curve
Spca_plot

Plot the test information or scale curve in either two or three dimensions.
density_plot

Plot the probability density function for a set of test scores
entropies

Entropy measures of inter-item dependency
Scope_plot

Plot the score index index as a function of arc length.
chcemat_simulate

Simulate a test or scale data matrix.
dataSimulation

Simulation Based Estimates of Error Variation of Score Index Estimates
scorePerformance

Calculate mean squared error and bias for a set of score index values from simulated data.
TestInfo_svd

Image of the Test Tnformation Curve in 2 or 3 Dimensions
TestGardener

Analyses of Tests and Rating Scales using Information or Surprisal
scoreDensity

Compute and plot a score density histogram and and curve.
TG_analysis

Statistics for Multiple choice Tests, Rating Scales and Other Choice Data)
index_search

Ensure that estimated score index is global
TG_density.fd

Compute a Probability Density Function
make_dataList

Make a list object containing information required for analysis of choice data.
index2info

Compute results using arc length or information as the abscissa.
eval.surp

Values of a Functional Data Object Defining Surprisal Curves.
mu_plot

Plot expected test score as a function of score index
mu

Compute the expected test score by substituting probability of choices for indicator variable 0-1 values. Binary items assumed coded as two choice items.
surp.fit

Objects resulting for assessing fit of surprisal matrix to surprisal data
index_distn

Compute score density
index_fun

Compute optimal scores
smooth.ICC

Smooth binned probability and surprisal values to make an ICC object.
smooth.surp

Fit data with surprisal smoothing.
Ffun

Compute the negative log likelihoods associated with a vector of score index values.
Entropy_plot

Plot item entropy curves for selected items or questions.
Power_plot

Plot item power curves for selected items or questions.
Ffuns_plot

Plot a selection of fit criterion F functions and their first two derivatives.
ICC

Plotting probability and surprisal curves for an item
DFfun

Compute the first and second derivatives of the negative log likelihoods
Quant_13B_problem_chcemat

Test data for 24 math calculation questions from the SweSAT data.
Analyze

Analyze test or rating scale data defined in dataList.
Fcurve

Construct grid of 101 values of the fitting function