gpermtest2¶
- gpermtest2(varargin)
GPERMTEST2 Computes global acceptance bounds and regions of significance for a given statistic for two sets of multidimensional observations
Usage: gpermtest2() RUNS DEMO [sig_regions, acceptance_bounds] = gpermtest2(group1, group2, xvals, yvals, alpha_level, statfcn, iterations, ploton)
Input: group1, group2: in form <dimensions> x <trials> – required alpha_level: global acceptance alpha (Default: 0.05) statfcn: handle statistic to compute across trials (Default: @(x)nanmean(x,2) MUST COMPUTE ACROSS DIM 2) ploton: (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:
gpermtest2(); %RUNS DEMO
Copyright 2024 Michael J. Prerau Laboratory. - http://www.sleepEEG.org