Re: [Freesurfer] LME design matrix for changes in 1 group

2023-02-02 Thread Reuter, Martin,Ph.D.
Hi Amirhossein, For GLM there is a way to compute pair-wise difference when stacking (probably a flag to mri_stack or preproc ) . You will end up having 1 frame per participant. For LME I take this off the list as it gets very detailed about your specific setup and is not really a FreeSurfer

Re: [Freesurfer] LME design matrix for changes in 1 group

2023-02-01 Thread amirhossein manzouri
External Email - Use Caution Hi Martin, I ran longitudinal pipeline on all time points so I have one template. For the GLM approach I first calculated pc1 for baselineVs placebo (either day1 or day2) and got the lh(rh).bl-pl.thickness-pc1.fwhm10.mgh then calculated pc1 for bl vs

Re: [Freesurfer] LME design matrix for changes in 1 group

2023-01-30 Thread amirhossein manzouri
External Email - Use Caution Thanks Martin. I assume in GLM approach I should calculate change for session 1 and 2 and then 3 and 4 and then run difference of difference. We actually randomized the order so half day1 is plcebo and half drug. So I just need to be caretabout the

Re: [Freesurfer] LME design matrix for changes in 1 group

2023-01-30 Thread Reuter, Martin,Ph.D.
Hi Amirhossein, So you have session 1 , placebo , session 2 Another day session 3, drug, session 4 ? Again if this is for all subjects, easiest is to subtract session 2 from 1, and 4 from 3, to get thickness/volume differences for each condition. Then compute the difference of the differences

Re: [Freesurfer] LME design matrix for changes in 1 group

2023-01-30 Thread amirhossein manzouri
External Email - Use Caution Thanks a lot Martin for the information. We have actually 2 sessions of placebo for each subject. How do you suggest to do the analysis including that data? BR On Mon, 30 Jan 2023 at 16:30, Reuter, Martin,Ph.D. wrote: > Hi Amirhossein, > > - If you

Re: [Freesurfer] LME design matrix for changes in 1 group

2023-01-30 Thread Reuter, Martin,Ph.D.
Hi Amirhossein, - If you have two time points for all participants, - and the time difference is the same for all you can simply subtract the thickness (or volume) values per participant and run a regular GLM. LME is a little overkill here. In LME, you have one column of ones, and one of the

[Freesurfer] LME design matrix for changes in 1 group

2023-01-30 Thread amirhossein manzouri
External Email - Use Caution Hi, I have 2 sessions of data acquired in the same day for each participant before and after the drug intake. I wonder how to analyse this with LME tool. I create design matrix X in 2 columns, first all ones and second the time differences(which are