Skip to content

AFNI/NIfTI Server

Sections
Personal tools
You are here: Home » AFNI » Community » Message Board

History of AFNI updates   Suggested reading for beginners   Add yourself to the AFNI map!

 New Topic  |  Go to Top  |  Go to Topic  |  Search   Previous Message  |  Next Message 
 Re: Averaging across subjects and over clusters
Author: rick reynolds (---.nimh.nih.gov)
Date:   11-02-09 09:12

Hi Aditya,

I would just script this. Note that you can use 3dROIstats to
get the average per subject (but in one command), and redirect
the output to a 1D file. You can then get the mean from that
via 3dTstat.

Consider something like this:

----------------------------------------------------------------------
foreach cond ( cA cB cC )
3dROIstats -quiet -mask mask+tlrc beta.subj*.$cond+tlrc.HEAD > stats.$cond.1D
3dTstat -mean -prefix - stats.$cond.1D\' > mean.$cond.1D
end

cat mean.*.1D > condition.means.1D
3dTstat -mean -prefix - condition.means.1D\' > final.mean.1D
----------------------------------------------------------------------

- rick



 Reply To This Message  |  Flat View   Newer Topic  |  Older Topic 

 Topics Author  Date
 Averaging across subjects and over clusters  new
Aditya Prasad 10-31-09 21:14 
 Re: Averaging across subjects and over clusters  
rick reynolds 11-02-09 09:12 


 New Topic  |  Go to Top  |  Go to Topic  |  Search 
 Reply To This Message
 Your Name:
 Your E-mail:
 Subject:
 Attachment:
 Attachment:
   

Powered by Plone

phorum.org

This site conforms to the following standards: