Home > brede > brede_vol_twosample.m

brede_vol_twosample

PURPOSE ^

brede_vol_twosample - Two-sample t-statistics

SYNOPSIS ^

function V = brede_vol_twosample(V1, V2, varargin)

DESCRIPTION ^

 brede_vol_twosample  - Two-sample t-statistics

       Input:    V1     Array of 'vol' structures
                 V2     Array of 'vol' structures

       Property: Type   [ {Unpairedt} | Pairedt ]

       Output:   V      'Vol' structure with t-statistics 

       Mass-univariate two-sample t-statistics for two sets of
       volumes. 

       Example:
         % Generate two null data sets
         for n=1:15,
           Va{n}.volume=randn(53,63,46);
           Vb{n}.volume=randn(53,63,46);
         end
 
         % Compute t-statistics
         Vnull = brede_vol_twosample(Va, Vb, 'type', 'PairedT');

         % Compute P-value and plot a histogram
         Pvalue = brede_cdf_t(Vnull.volume, 15-1);
         figure, hist(Pvalue(:), sqrt(length(Pvalue(:))))

       See also BREDE, BREDE_VOL, BREDE_VOL_MEAN,
                BREDE_VOL_SUBTRACT, BREDE_CDF_T, BREDE_PDF_T.

 $Id: brede_vol_twosample.m,v 1.3 2005/01/07 20:19:00 fnielsen Exp $

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:
Generated on Fri 27-Nov-2009 18:11:22 by m2html © 2005