gpermtest

gpermtest(varargin)

GPERMTEST Computes global acceptance bounds and regions of significance for a given statistic for two sets of multidimensional observations

Usage: gpermtest() RUNS DEMO [sigbins_all, sig_regions, acceptance_bounds, true_stat] = gpermtest(group1, group2, ‘alpha_level’, alpha_level, ‘statfcn’, …

statfcn, ‘iterations’, iterations, ‘ploton’, ploton);

Input: group1, group2: in form <dimensions> x <trials> – required alpha_level: global acceptance alpha (Default: 0.05)x a statfcn: handle statistic to compute across trials (Default: @(x)mean(x,2) MUST COMPUTE ACROSS DIM 2) ploton: 0 no plot, 1 plot traces (default), 2 plot mean and 2*standard errors % Previously boolean for plot output (Default: true)

Output: sig_regions: A cell array of contiguous significant dimensions acceptance_bounds: the 2 x <dimensions> global acceptance bounds at a level defined by alpha_level

Example:

gpermtest(); %RUNS DEMO

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