Learn R Programming

grt

Functions to generate and analyze data for psychology experiments based on the General Recognition Theory.

This package is an R-port and extension of [GRT Toolbox for MATLAB by Leola Alfonso-Reese] (http://www-rohan.sdsu.edu/~leola/toolbox.html), with several added functionalities.

This package is also available on CRAN. To install the package from GitHub, first install devtools and its dependencies. Then run

devtools::install_github("matsukik/grt")

Copy Link

Version

Install

install.packages('grt')

Monthly Downloads

256

Version

0.2.2

License

GPL (>= 2)

Maintainer

Andy Wills

Last Published

August 24th, 2026

Functions in grt (0.2.2)

qdb

Quadratic Decision Bound
old2new_par

Convert 'old' to 'new' glcStruct format
qdb.p.correct

the proportion correct of the quadratic decision boundary.
unscale

Un-scale or re-center the scaled or centered Matrix-like object
subjdemo_cj

Sample dataset of a categorization experiment with 2D conjunctive stimuli.
scale

Scale method for the class 'glc' and 'gqc'
subjdemo_1d

Sample dataset of a categorization experiment with 1D stimuli.
subjdemo_2d

Sample dataset of a categorization experiment with 2D stimuli.
subjdemo_3d

Sample dataset of a categorization experiment with 3D stimuli.
gqcStruct

General Quadratic Classifier structure.
glcStruct

General Linear Classifier structure
ldb

Linear Decision Bound
logLik.gqcStruct

Log-Likelihood of a 'gqcStruct' Object
ldb.p.correct

Probability of correct classification based on the optimal linear decision bound.
coef.glc

Extract 'glc' or 'gcjc' coefficients
plot3d.glc

plot3d Method for Class 'glc'
grt-package

General Recognition Theory
gcjcStruct

General Conjunctive Classifier structure
plot.glc

Plot Method for Class 'glc'
grtrnorm

Sample from multiple multivariate normal distributions
gaborPatch

Draw a gray-scale Gabor Patch
gqc

General Quadratic Classifier
grg

General Random Guessing model
grtMeans

Obtain means of two multivariate normal populations satisfying certain criteria
extractAIC

extractAIC method for class 'glc', 'gqc', 'gcjc', and 'grg'
plot.gcjc

Plot Method for Class 'gcjc'
logLik.glc

Log-Likelihood of a 'glc' or 'gcjc' Object
mcovs

Calculate sample means and covariance(s) of multivariate data
logLik.gqc

Log-Likelihood of a 'gqc' Object
plot.gqc

plot Method for Class 'gqc'
glc

General Linear Classifier
lines.gqcStruct

lines Method for class 'gqc'
dprime

Calculate d' (d-prime)
logLik.glcStruct

Log-Likelihood of a 'glcStruct' or 'gcjcStruct' Object
plot3d.gqc

plot3d Method for Class 'gqc'
gcjc

General Conjunctive Classifier
new2old_par

Convert 'new' to 'old' glcStruct format
predict.glc

predict method for General Linear Classifier