Paired t-tests are for comparing two scans/conditions from the same subject. If you have 2 groups, you want to use a two-sample t-test. If you have multiple groups, then you want to use an ANOVA. I would recommend making a directory for each group, then making a link in this directory to the original files (or a copy of the file if that is easier). Then you can just select all the files from that directory. Best Regards, Donald McLaren ================= D.G. McLaren, Ph.D. Research Fellow, Department of Neurology, Massachusetts General Hospital and Harvard Medical School Postdoctoral Research Fellow, GRECC, Bedford VA Website: http://www.martinos.org/~mclaren Office: (773) 406-2464 ===================== This e-mail contains CONFIDENTIAL INFORMATION which may contain PROTECTED HEALTHCARE INFORMATION and may also be LEGALLY PRIVILEGED and which is intended only for the use of the individual or entity named above. If the reader of the e-mail is not the intended recipient or the employee or agent responsible for delivering it to the intended recipient, you are hereby notified that you are in possession of confidential and privileged information. Any unauthorized use, disclosure, copying or the taking of any action in reliance on the contents of this information is strictly prohibited and may be unlawful. If you have received this e-mail unintentionally, please immediately notify the sender via telephone at (773) 406-2464 or email. On Wed, Oct 31, 2012 at 6:41 PM, Sébastien Gelin <[log in to unmask]> wrote: > Hi everyone, > > In the case of performing a paired t-test with SPM, I have to fill in a " Basic Model". But it is really time consuming because I have several groups and each group contains 50 subjects. And if I want to compare two differents group than previously , I have to creat a new basic model and I have to fill it in " by hand" again. Thus I would like to know if it is possible to fill in a "basic model" in an automatic way. > > It will be great if I could find a manner to say SPM something like: "takes these subjects that you can find here (providind a pathway) and creat a basil model with that and all the options". > > Once the basic model is created, I can estimate it and then display the result. > > Could you help me please. > > Thanks in advance. > > Séb