Statistics
teg_repeated_measures_ANOVA. Repeated measures ANOVA.
teg_repeated_measures. Repeated measures MANOVA.
teg_BLR. Binomial logistic regression function.
teg_crosstab. Crosstab and Chi squared test (automatically removes rows or columns with low expected counts).
teg_ftest. F-test.
teg_ttest. One-sample t-test.
teg_ttest2. Independent samples t-test.
teg_PCA. Returns principal components using the NIPALS algorithm: avoids having to make the covariance matrix so it's usable where the normal method would cause an Out of Memory error.
teg_scree. Function for getting the scree citerion for PCA.
Data analysis
hiro3. Interactive plot program for resliced SPM data. Includes blob identification, anatomical labelling. Last update March 2009.
Aztec. Removes physiological confounds from fMRI data.
antici. Evolving EEG toolbox and GUI.
Signal processing
EZfilt. Simplified but robust approach to filtering.
Wavelet toolbox. A basic toolbox (integrated in antici) for doing wavelet analysis. The functions provide transformations of vectors to instantaneous amplitude and phase-difference vectors, and averaging to event-related amplitude and the PLV. There's also a data-simulator and example program.
Input / Output
gen_read_data. Reads binary .BED genetic data.
teg_read. Simple ASCII file reader, for when you might have missing values or non-number elements to ignore. Updated 24 - 05 - 2009.
Plotting
teg_stemleaf. Stem-and-leaf plot showing descriptives of vectors.
cLine. Plots lines with standard-error bars.
cvec. An interactive vector-visualization function, allows quick navigation through a vector at changing time scales.
cmat. Util for visualization and manipulation of 3D matrices.
arrow. Function to plot arrows.
tg_pcolor. A 2-D color-coded plotter for matrices adapted from the default function pcolor.
tg_surf3d. Plots a surface in 3D, you specify x, y, z coordinates and associated value and it color-codes it. Nice for EEG scalp maps.
General
rec_loop. A recursive looping function that allows an arbitrary depth of nested loops.
KESN. Function that finds the optimal partitioning of a set of values.
Random
Trial event function. A function to generate timelines for experiment trials.
Smooth corners. Build a road where corners are replaced by arcs so that the direction is continuous. Example of a function that generates input for roadwarrior3.
Balanced latin square generator. A latin square is an N x N matrix in which every row and column contains exactly one of each of N elements. If the square is balanced, every element is followed and preceded exactly once by each other element. This script generates such squares randomly.
gameSolver. Solves finite strategic games using the pivot method.