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 and run a GLM testing for difference from 
zero.

An LME approach could be:
Column of 1
Column of time (zero for session 1 and 3, one for session 2 and 4)
Column of day  (zero for session 1 and 2, one for session 3 and 4)
Column of drug (zero for session 1,2,3 and one for session 4)

The last one is the interesting one. But I would discuss this with a 
bio-statistician. I develop methods for image analysis and this could be wrong 
(or sub-optimal).

Best, Martin



On 30. Jan 2023, at 16:40, amirhossein manzouri <a.h.manzo...@gmail.com> wrote:


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. 
<mreu...@mgh.harvard.edu<mailto:mreu...@mgh.harvard.edu>> wrote:
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 time (which is 0 and t 
alternating ) , this is not the time difference!  The first time point is at 
time 0 and the second at time t (in hours or days whatever). If the time really 
does not matter, you can also put 0 and 1.

You can run the model with no random effect or with one random effect. The wiki 
https://surfer.nmr.mgh.harvard.edu/fswiki/LinearMixedEffectsModels<https://secure-web.cisco.com/1CSHB-5Ru-H_vm7bj0aIPjdrfuSN8LCdCPwMAtUeig065FbJHQSap5C8AvEn_6ceCs_21nSgcls3Pi-hX-gLtpA81R1NcrWukVV8tRbO66bjHACvq9NFfjtu6qX53752X_OIMrKu6TQc1AnyPMzj6VWoDyk-ojaL4txDORLwU1SVWTJo9VOchHuCdUMIcGnWMP_kDLmSBnAYZxkmhITpLs4pY9k9FGZqcf4Tf3dk8b-P_tqUBwdjlZD2yMAEur9MIZuFKScaSEGaVk4CBsqbUPnc1DFns7_Ew-goF7LAcc_pDWLzg0X3WPQpFD1qTcmuGT12wVNaZWKvHSXSAGjA56A/https%3A%2F%2Fsurfer.nmr.mgh.harvard.edu%2Ffswiki%2FLinearMixedEffectsModels>
 describes how to compare those models, also how to compute significance.

You probably have more columns (also if you do the GLM) e.g. the amount of drug 
that was given, or who got the drug and who got placebo. Otherwise you cannot 
check for a drug effect. That column would be the one you are interested in.

Without a placebo group, you will find difference across time, but you will not 
know if they are from the drug or from the fact that people are familiar with 
the scanner (less head motion) or more annoyed by the scanner (more head 
motion) or more tired, or more dehydrated, or rehydrated if you give the drug 
with water, or simply a time-of-the-day effect, or scanner heats up etc.

Some of these confounders are problematic anyway, as the drug can have a 
sedative effect (less motion?) or was given with water (re-hydration). The 
second can be controlled by giving placebo with the same amount of water. 
Disentangling motion from drug effect (due to the possible correlation) would 
only be possible if you separately measure motion or take fMRI or diffusion 
motion estimates as a proxy for motion during T1.


Head motion reduces grey matter estimates:
<https://secure-web.cisco.com/1Gxeqs4jJ99OuR4by9bss7f3j35AVnLoFz3XximPcl4CqxGfEA2sLpbIhDtoXRFDGBiHMnODrMWCNdNy-5vQ_hKlNVmMnPSO2WEjvxo2UALdotWZMx3RR9olNrX4XX1zOpcZtcRH0mUft385Fn5hYsfqyUACXdEORwRYWQd4-550qgRH_RbP7ubFCgtYLTPHbYa4RauCEhEZvvzikMY8dthIQpWkuxPQ5Vhsp7-vq_WpzFfmPEVzMqLcStIiHuHBHeZCqpsTbnX2LAV7-TDgxvcCbkfSoq0WAswmCro8soqxsQxN_V4aKtT3DUEgqCO3Sv_tTFnkCVHlosSxyvflB1A/https%3A%2F%2Fdoi.org%2F10.1016%2Fj.neuroimage.2014.12.006>
doi.org<https://secure-web.cisco.com/1Gxeqs4jJ99OuR4by9bss7f3j35AVnLoFz3XximPcl4CqxGfEA2sLpbIhDtoXRFDGBiHMnODrMWCNdNy-5vQ_hKlNVmMnPSO2WEjvxo2UALdotWZMx3RR9olNrX4XX1zOpcZtcRH0mUft385Fn5hYsfqyUACXdEORwRYWQd4-550qgRH_RbP7ubFCgtYLTPHbYa4RauCEhEZvvzikMY8dthIQpWkuxPQ5Vhsp7-vq_WpzFfmPEVzMqLcStIiHuHBHeZCqpsTbnX2LAV7-TDgxvcCbkfSoq0WAswmCro8soqxsQxN_V4aKtT3DUEgqCO3Sv_tTFnkCVHlosSxyvflB1A/https%3A%2F%2Fdoi.org%2F10.1016%2Fj.neuroimage.2014.12.006>
[X]<https://secure-web.cisco.com/1Gxeqs4jJ99OuR4by9bss7f3j35AVnLoFz3XximPcl4CqxGfEA2sLpbIhDtoXRFDGBiHMnODrMWCNdNy-5vQ_hKlNVmMnPSO2WEjvxo2UALdotWZMx3RR9olNrX4XX1zOpcZtcRH0mUft385Fn5hYsfqyUACXdEORwRYWQd4-550qgRH_RbP7ubFCgtYLTPHbYa4RauCEhEZvvzikMY8dthIQpWkuxPQ5Vhsp7-vq_WpzFfmPEVzMqLcStIiHuHBHeZCqpsTbnX2LAV7-TDgxvcCbkfSoq0WAswmCro8soqxsQxN_V4aKtT3DUEgqCO3Sv_tTFnkCVHlosSxyvflB1A/https%3A%2F%2Fdoi.org%2F10.1016%2Fj.neuroimage.2014.12.006>

Dehydration effects:
<http://secure-web.cisco.com/1N72PJNUA7q39TJ2KxmaPU6S0Hk2nDBUjcvfnLILkBvYivqxoezcoL_O4-3ltDlylhcMdGdDvLNVmaK9pAU5E5V6btgq8uQ06N-u2BByQTaPrQZNgFvDcgWXiDy5PEgaeYr__bzxWmyFpPKH9rnxSlCFLQ5IB-INgSksp_dg2vp2hPfT-tD5QCDeaT7jwK1as_5HnEG81fbSCFn9BerSWzC9xvqKBLaiMs8VCCJrTtZ7Gf264HAKgLuaxxwCEwURVem6jAZwEXq71dkfH56GUowA3-pWFetIt32OiT_GMcqh1DWHxrauTyvPtr--JBELJ6lfGvNs-K_ZOKmxZggK_zA/http%3A%2F%2Fwww.ajnr.org%2Fcontent%2F36%2F12%2F2277.long>
<12.cover-source.jpg>
Responses of the Human Brain to Mild Dehydration and Rehydration Explored In 
Vivo by 1H-MR Imaging and 
Spectroscopy<http://secure-web.cisco.com/1N72PJNUA7q39TJ2KxmaPU6S0Hk2nDBUjcvfnLILkBvYivqxoezcoL_O4-3ltDlylhcMdGdDvLNVmaK9pAU5E5V6btgq8uQ06N-u2BByQTaPrQZNgFvDcgWXiDy5PEgaeYr__bzxWmyFpPKH9rnxSlCFLQ5IB-INgSksp_dg2vp2hPfT-tD5QCDeaT7jwK1as_5HnEG81fbSCFn9BerSWzC9xvqKBLaiMs8VCCJrTtZ7Gf264HAKgLuaxxwCEwURVem6jAZwEXq71dkfH56GUowA3-pWFetIt32OiT_GMcqh1DWHxrauTyvPtr--JBELJ6lfGvNs-K_ZOKmxZggK_zA/http%3A%2F%2Fwww.ajnr.org%2Fcontent%2F36%2F12%2F2277.long>
ajnr.org<http://secure-web.cisco.com/1N72PJNUA7q39TJ2KxmaPU6S0Hk2nDBUjcvfnLILkBvYivqxoezcoL_O4-3ltDlylhcMdGdDvLNVmaK9pAU5E5V6btgq8uQ06N-u2BByQTaPrQZNgFvDcgWXiDy5PEgaeYr__bzxWmyFpPKH9rnxSlCFLQ5IB-INgSksp_dg2vp2hPfT-tD5QCDeaT7jwK1as_5HnEG81fbSCFn9BerSWzC9xvqKBLaiMs8VCCJrTtZ7Gf264HAKgLuaxxwCEwURVem6jAZwEXq71dkfH56GUowA3-pWFetIt32OiT_GMcqh1DWHxrauTyvPtr--JBELJ6lfGvNs-K_ZOKmxZggK_zA/http%3A%2F%2Fwww.ajnr.org%2Fcontent%2F36%2F12%2F2277.long>


Best, Martin



On 30. Jan 2023, at 15:18, amirhossein manzouri 
<a.h.manzo...@gmail.com<mailto:a.h.manzo...@gmail.com>> wrote:


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 the same) and wonder if I need to only run the model with 
one random effect like

lhTh0_1RF = lme_mass_fit_EMinit(X,[1],Y,ni,lhcortex,3);

And what would be the next steps to get the stats and sig.mgh

Best regards,
Amirhossein Manzouri




The information in this e-mail is intended only for the person to whom it is 
addressed.  If you believe this e-mail was sent to you in error and the e-mail 
contains patient information, please contact the Mass General Brigham 
Compliance HelpLine at 
https://www.massgeneralbrigham.org/complianceline<https://secure-web.cisco.com/15OkEiWoDnMyy8bwZkv9FK3kd0i6h-dyEEr-93gSTwg0PA86luo4gIjd9HiO5mob8Yhz48AXiYniJ1VDizJ3wfwZr8x9Mb7WI72bm4aKGRhQ-4UTaJFZRgAKZnejsgUEPh4Fd2-r4yKH1NX96ZV-MWc2U9zWtT6fNN0tmPhK_ZC45qzLBG_cXzsmajjyqqbPmA3GKCEnGcbeE1M-9yLoqYaZldBQ1j1yE4-4Eesj6VqxYGtDb3auW0geTPsRlfRpvpZfHA3XHf-Lte9B4rkBjS0rg1EORoa8jkGX1XCVvT1TTpZBQAojTgi2Ut98knIcB2cLBjTbFToJHSEmdChLtPg/https%3A%2F%2Fwww.massgeneralbrigham.org%2Fcomplianceline>
 .
--
Best regards,
Amirhossein Manzouri




_______________________________________________
Freesurfer mailing list
Freesurfer@nmr.mgh.harvard.edu
https://mail.nmr.mgh.harvard.edu/mailman/listinfo/freesurfer
The information in this e-mail is intended only for the person to whom it is 
addressed.  If you believe this e-mail was sent to you in error and the e-mail 
contains patient information, please contact the Mass General Brigham 
Compliance HelpLine at https://www.massgeneralbrigham.org/complianceline 
<https://www.massgeneralbrigham.org/complianceline> .
Please note that this e-mail is not secure (encrypted).  If you do not wish to 
continue communication over unencrypted e-mail, please notify the sender of 
this message immediately.  Continuing to send or respond to e-mail after 
receiving this message means you understand and accept this risk and wish to 
continue to communicate over unencrypted e-mail. 

Reply via email to