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 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
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 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://doi.org/10.1016/j.neuroimage.2014.12.006 doi.orghttps://doi.org/10.1016/j.neuroimage.2014.12.006 [X]https://doi.org/10.1016/j.neuroimage.2014.12.006
Dehydration effects: http://www.ajnr.org/content/36/12/2277.long [12.cover-source.jpg] Responses of the Human Brain to Mild Dehydration and Rehydration Explored In Vivo by 1H-MR Imaging and Spectroscopyhttp://www.ajnr.org/content/36/12/2277.long ajnr.orghttp://www.ajnr.org/content/36/12/2277.long
Best, Martin
On 30. Jan 2023, at 15:18, amirhossein manzouri a.h.manzouri@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
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. MREUTER@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://secure-web.cisco.com/1pVifRNw5er1Lzc_ccwFC4C2YEYU4u84Wg9uAV_jJXoNhsc... 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: doi.org https://secure-web.cisco.com/1e_P8iI_a0AjzM6otpiIKFIie8xPaSUrn_hDo3gC-Cw3mJr6_QJ0y4SvUQNF437reTYvJC_yg1IQFS46nslAKbWVTirgEI06ZV-ZULsP6k9WMDhHqV48MTRMyGdotkdNclTL0fBthajVX6Q7ROmtZe79OFT5OVfMJBxSaUdn73A2TcSGg0OY1EX6AivNMR8M00cXY51nOJrrtts779DGVll1dnqJxPnsmvg9tbvGiCGV9fPV0p6JhOUvMz1lZbHMFWB53Dl6cOhIbug2-hVjV9qk1JPuYGQgpVXUH6vPoH8zpnBaRHBBGl4fzxb-LUW8tEnhNksZl3VyWlgBXoHOhlA/https%3A%2F%2Fdoi.org%2F10.1016%2Fj.neuroimage.2014.12.006 https://secure-web.cisco.com/1e_P8iI_a0AjzM6otpiIKFIie8xPaSUrn_hDo3gC-Cw3mJr6_QJ0y4SvUQNF437reTYvJC_yg1IQFS46nslAKbWVTirgEI06ZV-ZULsP6k9WMDhHqV48MTRMyGdotkdNclTL0fBthajVX6Q7ROmtZe79OFT5OVfMJBxSaUdn73A2TcSGg0OY1EX6AivNMR8M00cXY51nOJrrtts779DGVll1dnqJxPnsmvg9tbvGiCGV9fPV0p6JhOUvMz1lZbHMFWB53Dl6cOhIbug2-hVjV9qk1JPuYGQgpVXUH6vPoH8zpnBaRHBBGl4fzxb-LUW8tEnhNksZl3VyWlgBXoHOhlA/https%3A%2F%2Fdoi.org%2F10.1016%2Fj.neuroimage.2014.12.006 https://secure-web.cisco.com/1e_P8iI_a0AjzM6otpiIKFIie8xPaSUrn_hDo3gC-Cw3mJr6_QJ0y4SvUQNF437reTYvJC_yg1IQFS46nslAKbWVTirgEI06ZV-ZULsP6k9WMDhHqV48MTRMyGdotkdNclTL0fBthajVX6Q7ROmtZe79OFT5OVfMJBxSaUdn73A2TcSGg0OY1EX6AivNMR8M00cXY51nOJrrtts779DGVll1dnqJxPnsmvg9tbvGiCGV9fPV0p6JhOUvMz1lZbHMFWB53Dl6cOhIbug2-hVjV9qk1JPuYGQgpVXUH6vPoH8zpnBaRHBBGl4fzxb-LUW8tEnhNksZl3VyWlgBXoHOhlA/https%3A%2F%2Fdoi.org%2F10.1016%2Fj.neuroimage.2014.12.006
Dehydration effects: [image: 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/1t9KdLgaaOX0ZM8q84nAgqzxuwxzOE7mU6W8L9Xf2vgU34gxEtyG2Zcx557UOSHgoNdN49Uy--wXidOihtVmF9VBDcwIi6GXK4c-fI6xsd0VLgD1yc30AOeIMNBdY-WvgV-sepvsAql3Tdi9OKH248IzQH0t-cXbj3q_HlbowpgfWh6Zbzw9dGMuZUpftxn6Gp-Ycq8od7JVV4DikAMkhj2y-8JdyHdUSU3JJkETfUVntjuAVBZ5AN_y-1pI39bu3w95rTUrH9BhH2ic1xtlG1hASibJjoDsnj87lYMrp6h4urWndK0g1UHCj-Scz0voeCsI6nuyoAYkEJEZLjFog8g/http%3A%2F%2Fwww.ajnr.org%2Fcontent%2F36%2F12%2F2277.long ajnr.org http://secure-web.cisco.com/1t9KdLgaaOX0ZM8q84nAgqzxuwxzOE7mU6W8L9Xf2vgU34gxEtyG2Zcx557UOSHgoNdN49Uy--wXidOihtVmF9VBDcwIi6GXK4c-fI6xsd0VLgD1yc30AOeIMNBdY-WvgV-sepvsAql3Tdi9OKH248IzQH0t-cXbj3q_HlbowpgfWh6Zbzw9dGMuZUpftxn6Gp-Ycq8od7JVV4DikAMkhj2y-8JdyHdUSU3JJkETfUVntjuAVBZ5AN_y-1pI39bu3w95rTUrH9BhH2ic1xtlG1hASibJjoDsnj87lYMrp6h4urWndK0g1UHCj-Scz0voeCsI6nuyoAYkEJEZLjFog8g/http%3A%2F%2Fwww.ajnr.org%2Fcontent%2F36%2F12%2F2277.long http://secure-web.cisco.com/1t9KdLgaaOX0ZM8q84nAgqzxuwxzOE7mU6W8L9Xf2vgU34gxEtyG2Zcx557UOSHgoNdN49Uy--wXidOihtVmF9VBDcwIi6GXK4c-fI6xsd0VLgD1yc30AOeIMNBdY-WvgV-sepvsAql3Tdi9OKH248IzQH0t-cXbj3q_HlbowpgfWh6Zbzw9dGMuZUpftxn6Gp-Ycq8od7JVV4DikAMkhj2y-8JdyHdUSU3JJkETfUVntjuAVBZ5AN_y-1pI39bu3w95rTUrH9BhH2ic1xtlG1hASibJjoDsnj87lYMrp6h4urWndK0g1UHCj-Scz0voeCsI6nuyoAYkEJEZLjFog8g/http%3A%2F%2Fwww.ajnr.org%2Fcontent%2F36%2F12%2F2277.long
Best, Martin
On 30. Jan 2023, at 15:18, amirhossein manzouri a.h.manzouri@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://secure-web.cisco.com/1Soma_Jv2D3v65EVhiRlp3N_lY_u17jLzODtOQXfB7cHB9A... .
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.manzouri@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. <MREUTER@mgh.harvard.edumailto:MREUTER@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/LinearMixedEffectsModelshttps://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.orghttps://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 Spectroscopyhttp://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.orghttp://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.manzouri@gmail.commailto:a.h.manzouri@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/compliancelinehttps://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
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 design for LME. BR
On Mon, 30 Jan 2023 at 17:09, Reuter, Martin,Ph.D. MREUTER@mgh.harvard.edu wrote:
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.manzouri@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. < MREUTER@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://secure-web.cisco.com/1WKlQ0u9JEMPReF063WyLOTyVSO-47TES55AV1uo84axCXL... 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: 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
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 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: <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.manzouri@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://secure-web.cisco.com/1g8nvtqd2T8dcrC8NNj_wRg2Zlqifd7Q_5undowtLtewq6a... 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
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://secure-web.cisco.com/1g8nvtqd2T8dcrC8NNj_wRg2Zlqifd7Q_5undowtLtewq6a... .
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 drug and got lh(rh).bl-drug.thickness-pc1.fwhm10.mgh. How should I look at the difference of difference now? should I stack them together and then create fsgd? Regarding the LME approach I made the design file and followed the steps in tutorial , so I calculated with 2 and 1 random effect and length(dvtx) is smaller than 80% of length(lhcortex), so I assume that I should go for 1 random effect (lhstats_1RF) and CM.C = [0 0 0 1] then:
F_lhstats = lme_mass_F(lhstats_1RF,CM); dvtx = lme_mass_FDR2(F_lhstats.pval,F_lhstats.sgn,lhcortex,0.05,0);
And now the dvtx is empty. Am I doing the right steps? Is there anything else you suggest?
Best regards, Amirhossein Manzouri
On Mon, Jan 30, 2023 at 7:59 PM amirhossein manzouri a.h.manzouri@gmail.com wrote:
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 design for LME. BR
On Mon, 30 Jan 2023 at 17:09, Reuter, Martin,Ph.D. < MREUTER@mgh.harvard.edu> wrote:
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.manzouri@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. < MREUTER@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://secure-web.cisco.com/1Ey4MhXIG_R2LHA5sT7HL2EJPi4egIFFk0CvQ42MPwbI9wb... 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: 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
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 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: <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.manzouri@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://secure-web.cisco.com/1qM9YmHV4AcaE9U_UxqlSQvjT4uD_wuwrRSdYqAXI_hiMt6... 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
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://secure-web.cisco.com/1qM9YmHV4AcaE9U_UxqlSQvjT4uD_wuwrRSdYqAXI_hiMt6... .
-- Best regards, Amirhossein Manzouri
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 issue, but rather your statistical testing and the hypothesis that you are interested in.
Best, Martin
On 1. Feb 2023, at 11:08, amirhossein manzouri a.h.manzouri@gmail.com wrote:
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 drug and got lh(rh).bl-drug.thickness-pc1.fwhm10.mgh. How should I look at the difference of difference now? should I stack them together and then create fsgd? Regarding the LME approach I made the design file and followed the steps in tutorial , so I calculated with 2 and 1 random effect and length(dvtx) is smaller than 80% of length(lhcortex), so I assume that I should go for 1 random effect (lhstats_1RF) and CM.C = [0 0 0 1] then:
F_lhstats = lme_mass_F(lhstats_1RF,CM); dvtx = lme_mass_FDR2(F_lhstats.pval,F_lhstats.sgn,lhcortex,0.05,0);
And now the dvtx is empty. Am I doing the right steps? Is there anything else you suggest?
Best regards, Amirhossein Manzouri
On Mon, Jan 30, 2023 at 7:59 PM amirhossein manzouri <a.h.manzouri@gmail.commailto:a.h.manzouri@gmail.com> wrote: 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 design for LME. BR
On Mon, 30 Jan 2023 at 17:09, Reuter, Martin,Ph.D. <MREUTER@mgh.harvard.edumailto:MREUTER@mgh.harvard.edu> wrote: 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.manzouri@gmail.commailto:a.h.manzouri@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. <MREUTER@mgh.harvard.edumailto:MREUTER@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/LinearMixedEffectsModelshttps://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.orghttps://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 Spectroscopyhttp://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.orghttp://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.manzouri@gmail.commailto:a.h.manzouri@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/compliancelinehttps://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
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/compliancelinehttps://secure-web.cisco.com/1icNxhdoyayLCDpt2C-nzSYXSfc_uSTQqJDFFFZ1R8hDx2yVSvIleU80WSjx9iyWAsqkjN__4eAc7we0O6MsOMr2KvWAjx_cjEC2Qi0_NNkNPqRPfbrLNbPjpeAgbfQw6gR7zdLY_AcYGArzw456q4iglD_f7iDMpupbaqfGkpRAE7EE8ZVrc_HLQzsL7tyJ1GMa5VUT5RvcvatLQrtL1QRGd-FveCeHraW7jZVRSySOXip4OByp2fxmDd4vz8EWax70RP-JdCJIijOp6Wlh_LugC6qurULU1BUDXMZceaAyxGVPaRl5aBP1K42rPfjB6/https%3A%2F%2Fwww.massgeneralbrigham.org%2Fcomplianceline . -- Best regards, Amirhossein Manzouri
freesurfer@nmr.mgh.harvard.edu