Re: [HCP-Users] Regress confounds out of CIFTIs

2019-02-01 Thread Steve Smith
Hi - yes IIRC it's only the demeaning that is important - the scaling of the regressors makes no difference to the output from the deconfounding. Normalising SD is a "sane" step in such processing in general, and sometimes is of value (depending on what outputs one is interested in wrt the

Re: [HCP-Users] Regress confounds out of CIFTIs

2019-01-31 Thread Ely, Benjamin
Hi Matt, I’ve been using a matlab command similar to the one you gave to regress/remove timeseries values from our data, based on code from the ICAFIX script fix_3_clean.m. Glad to hear that’s what you suggest! Quick question though: before regressing out ICA component timeseries values, the

Re: [HCP-Users] Regress confounds out of CIFTIs

2019-01-24 Thread Leonardo Tozzi
Date: Thursday, January 24, 2019 at 3:05 PM To: Leonardo Tozzi , "hcp-users@humanconnectome.org" Subject: Re: [HCP-Users] Regress confounds out of CIFTIs We do this in matlab. It is not necessary to loop, just use proper matrix math. For example: newdtseries = dtseries - (demean

Re: [HCP-Users] Regress confounds out of CIFTIs

2019-01-24 Thread Glasser, Matthew
We do this in matlab. It is not necessary to loop, just use proper matrix math. For example: newdtseries = dtseries - (demean(regressor) * (pinv(demean(regressor)) * dtseries'))’; Where demean(regressor) removes the mean of each regressor. Matt. From: