As smoothing as well as GLM are fully linear operations (double check the equations in the SPM book), and therefore commutative, I do not think it is mathematically any different (for resulting b/t-values) whether you first 'regress out' the movement parameters, smooth, and then do GLM, or smooth, and do GLM with movement parameters included. I think that's why the order you suggest can't be batched, as it is much slower and doesn't make any a-priori sense (to me at least). But perhaps I am overlooking something here, there might be a non-linearity in the whitening procedure? Others might shed their light on this. Why would you prefer one order over the other? Cheers, Bas On 10/31/2012 04:39 PM, Philip R. Baldwin wrote: > > Dear SPM, > > Is there a batch module that might appear in the batch editor, for > regressing out head motion during preprocessing? Maybe someone on the > board has written this? > Or someone can tell me how to add a module? > > I am trying to do a resting state analysis and I feel comfortable > with the registrations that I get through SPM. I need to regress out > the head motion before > smoothing however, and SPM generally regresses out head motion in GLM. > > Thank you, Phil Baldwin > Center for Advanced Magnetic Resonance Imaging > Houston TX > -- -------------------------------------------------- Dr. S.F.W. Neggers Division of Brain Research Rudolf Magnus Institute for Neuroscience Utrecht University Medical Center Visiting : Heidelberglaan 100, 3584 CX Utrecht Room B.01.1.03 Mail : Huispost B01.206, P.O. Box 85500 3508 GA Utrecht, the Netherlands Tel : +31 (0)88 7559609 Fax : +31 (0)88 7555443 E-mail : [log in to unmask] Web : http://www.neuromri.nl/people/bas-neggers : http://www.brainsciencetools.com (CEO) -------------------------------------------------- ------------------------------------------------------------------------------ De informatie opgenomen in dit bericht kan vertrouwelijk zijn en is uitsluitend bestemd voor de geadresseerde. Indien u dit bericht onterecht ontvangt, wordt u verzocht de inhoud niet te gebruiken en de afzender direct te informeren door het bericht te retourneren. Het Universitair Medisch Centrum Utrecht is een publiekrechtelijke rechtspersoon in de zin van de W.H.W. (Wet Hoger Onderwijs en Wetenschappelijk Onderzoek) en staat geregistreerd bij de Kamer van Koophandel voor Midden-Nederland onder nr. 30244197. Denk s.v.p aan het milieu voor u deze e-mail afdrukt. ------------------------------------------------------------------------------ This message may contain confidential information and is intended exclusively for the addressee. If you receive this message unintentionally, please do not use the contents but notify the sender immediately by return e-mail. University Medical Center Utrecht is a legal person by public law and is registered at the Chamber of Commerce for Midden-Nederland under no. 30244197. Please consider the environment before printing this e-mail.