permtest2

permtest2(varargin)

PERMTEST2 Computes permutation test (max t-stat) and regions of significance

Usage: permtest2() RUNS DEMO [sigbins_all, tstat_obs, thresh, perm_tmax] = permtest2(group1, group2, alpha_level, iterations, ploton)

Input: group1, group2: in form <dimensions> x <trials> – required alpha_level: signficance level (Default: 0.05) ploton: (Default: true)

Output: sigbins: A vector of significant bins tstat_obs: Observed t-statistics thresh: threshold value for the permuted t-stats perm_tmax: Vector of permuted max(t-stats)

Example:

permtest2(); %RUNS DEMO

Copyright 2024 Michael J. Prerau Laboratory. - http://www.sleepEEG.org