Re: [Freesurfer] Running Linear Mixed Effects (LME) Model

2018-04-13 Thread Diers, Kersten /DZNE
On Di, 2018-04-10 at 16:09 +0200, Kaushal, Mayank wrote: > I appreciate your providing the pros and cons associated with both > options. > > Lets say for now we want to pursue option 2. > > My understating is that since you recommend not to include ‘visit’ > and 'time_from_baseline’ in the same mod

Re: [Freesurfer] Running Linear Mixed Effects (LME) Model

2018-04-10 Thread Kaushal, Mayank
I appreciate your providing the pros and cons associated with both options. Lets say for now we want to pursue option 2. My understating is that since you recommend not to include ‘visit’ and 'time_from_baseline’ in the same model, one of the steps in creating MLE model for option 2 would be t

Re: [Freesurfer] Running Linear Mixed Effects (LME) Model

2018-04-10 Thread Diers, Kersten /DZNE
On Mo, 2018-04-09 at 19:53 +0200, Kaushal, Mayank wrote: > I am indeed considering LME model since I have multiple visits (4) > for each subject and multiple groups (3). > > Based on your response, I am inclined to include the following. > > Intercept - random variable > Slope (time_base_scan) - ra

Re: [Freesurfer] Running Linear Mixed Effects (LME) Model

2018-04-09 Thread Kaushal, Mayank
I am indeed considering LME model since I have multiple visits (4) for each subject and multiple groups (3). Based on your response, I am inclined to include the following. Intercept - random variable Slope (time_base_scan) - random variable As I am including time_base_scan as the random variab

Re: [Freesurfer] Running Linear Mixed Effects (LME) Model

2018-04-09 Thread Diers, Kersten /DZNE
Hello, this is somewhat difficult to answer, so the following is a personal opinion. I think the first question is whether your would like to go for a) a cross-sectional design or b) a longitudinal design. If a), you'd have a single scan per subject (e.g., baseline) and could discard the tempora

Re: [Freesurfer] Running Linear Mixed Effects (LME) Model

2018-04-04 Thread Kaushal, Mayank
The continuous variable in my analysis is time_base_scan with the time points evaluated by me being of acute and subacute nature. However, due to the small differences in time elapsed between successive visits (duration between visits is a couple of weeks), is it possible to simply model LME ana

Re: [Freesurfer] Running Linear Mixed Effects (LME) Model

2018-03-30 Thread Diers, Kersten /DZNE
Hello, please find my responses below. Best regards, Kersten On Do, 2018-03-29 at 00:11 +0200, Kaushal, Mayank wrote: Hi Kersten, Apologies for the delay. I am still in the process of trying to figure out the gaps in my understanding and would appreciate your inputs. I created the design X

Re: [Freesurfer] Running Linear Mixed Effects (LME) Model

2018-03-09 Thread Diers, Kersten /DZNE
.*M(:,4)]; > > Then the order of the columns of X is: intercept, time-from-baseline, > age-at-baseline, group2, group3, time-from-baseline*group2, time- > from- > baseline*group3. > > Let's keep in mind that the order of columns in X is important for > the > formulation

Re: [Freesurfer] Running Linear Mixed Effects (LME) Model

2018-03-08 Thread Kaushal, Mayank
mailto:mkaus...@mcw.edu><mailto:mkaus...@mcw.edu>> Reply-to: Freesurfer support list mailto:freesurfer@nmr.mgh.harvard.edu>> To: Freesurfer support list mailto:freesurfer@nmr.mgh.harvard.edu>> Subject: Re: [Freesurfer] Running Linear Mixed Effects (LME) Model Date: Wed, 7 Mar

Re: [Freesurfer] Running Linear Mixed Effects (LME) Model

2018-03-08 Thread Diers, Kersten /DZNE
gt; baseline*group3. > > Let's keep in mind that the order of columns in X is important for > the > formulation of contrasts at a later stage (and is different from the > tutorial example). > > Again, this procedure and the matrices M and X are specific for this > particu

Re: [Freesurfer] Running Linear Mixed Effects (LME) Model

2018-03-07 Thread Kaushal, Mayank
he matrices M and X are specific for this particular analysis scenario and cannot necessarily be generalized to others. Best regards, Kersten -Original Message- From: "Kaushal, Mayank" mailto:mkaus...@mcw.edu>> Reply-to: Freesurfer support list To: Freesurfer support

Re: [Freesurfer] Running Linear Mixed Effects (LME) Model

2018-03-07 Thread Diers, Kersten /DZNE
zed to others. Best regards, Kersten -Original Message- From: "Kaushal, Mayank" Reply-to: Freesurfer support list To: Freesurfer support list Subject: Re: [Freesurfer] Running Linear Mixed Effects (LME) Model Date: Wed, 7 Mar 2018 15:48:36 +0100 I have made the sugge

Re: [Freesurfer] Running Linear Mixed Effects (LME) Model

2018-03-07 Thread Diers, Kersten /DZNE
know. Best regards, Kersten -Original Message- From: "Kaushal, Mayank" Reply-to: Freesurfer support list To: Freesurfer support list Subject: Re: [Freesurfer] Running Linear Mixed Effects (LME) Model Date: Tue, 6 Mar 2018 19:22:57 +0100 I have tabulated the columns for easie

Re: [Freesurfer] Running Linear Mixed Effects (LME) Model

2018-03-06 Thread Kaushal, Mayank
k" mailto:mkaus...@mcw.edu><mailto:mkaus...@mcw.edu>> Reply-to: Freesurfer support list mailto:freesurfer@nmr.mgh.harvard.edu>> To: Freesurfer support list mailto:freesurfer@nmr.mgh.harvard.edu>> Subject: Re: [Freesurfer] Running Linear Mixed Effects (LME) Mo

Re: [Freesurfer] Running Linear Mixed Effects (LME) Model

2018-03-06 Thread Kaushal, Mayank
7;, but to set the Matlab working directory to another directory where you have write permissions. Best regards Kersten -Original Message- From: "Kaushal, Mayank" mailto:mkaus...@mcw.edu>> Reply-to: Freesurfer support list To: Freesurfer support list Subject: Re: [Freesur

Re: [Freesurfer] Running Linear Mixed Effects (LME) Model

2018-03-06 Thread Diers, Kersten /DZNE
Original Message- From: "Kaushal, Mayank" Reply-to: Freesurfer support list To: Freesurfer support list Subject: Re: [Freesurfer] Running Linear Mixed Effects (LME) Model Date: Tue, 6 Mar 2018 15:17:31 +0100 After downloading version 6.0. and running lhstats = lme_mass_fit_vw(X,[

Re: [Freesurfer] Running Linear Mixed Effects (LME) Model

2018-03-06 Thread Kaushal, Mayank
general. > > Best, > > Kersten > > > > --Original Message- > From: "Kaushal, Mayank" > Reply-to: Freesurfer support list > To: Freesurfer support list > Subject: Re: [Freesurfer] Running Linear Mixed Effects (LME) Model > Date: Mon, 5 M

Re: [Freesurfer] Running Linear Mixed Effects (LME) Model

2018-03-06 Thread Diers, Kersten /DZNE
er support list To: Freesurfer support list Subject: Re: [Freesurfer] Running Linear Mixed Effects (LME) Model Date: Mon, 5 Mar 2018 20:47:36 +0100 The version string I have been using: $Revision: 1.1.1.1 $  $Date: 2012/02/02 11:25:52 $ So, it appears that I do indeed have the older version. I

Re: [Freesurfer] Running Linear Mixed Effects (LME) Model

2018-03-05 Thread Kaushal, Mayank
ME toolbox to run with a current Matlab version - except from > modifying the code itself. So my suggestion would be to just use the > newer LME toolbox that is shipped with Freesurfer 6.0. > > Let us know if I am mistaken or if there are further issues. > > Best regards, > > Ke

Re: [Freesurfer] Running Linear Mixed Effects (LME) Model

2018-03-05 Thread Diers, Kersten /DZNE
lbox that is shipped with Freesurfer 6.0. Let us know if I am mistaken or if there are further issues. Best regards, Kersten -Original Message- From: "Kaushal, Mayank" Reply-to: Freesurfer support list To: Freesurfer support list Subject: Re: [Freesurfer] Running Linear

Re: [Freesurfer] Running Linear Mixed Effects (LME) Model

2018-03-05 Thread Kaushal, Mayank
et this alternative approach working, I did not have to change the > Matlab preferences. > > Hope this helps, > > Kersten > > > -Original Message- > From: "Kaushal, Mayank" > Reply-to: Freesurfer support list > To: freesurfer@nmr.mgh.harvard

Re: [Freesurfer] Running Linear Mixed Effects (LME) Model

2018-03-05 Thread Diers, Kersten /DZNE
lab preferences. Hope this helps, Kersten -Original Message- From: "Kaushal, Mayank" Reply-to: Freesurfer support list To: freesurfer@nmr.mgh.harvard.edu Subject: [Freesurfer] Running Linear Mixed Effects (LME) Model Date: Sun, 4 Mar 2018 23:56:03 +0100 Dear Freesurfer Commu

[Freesurfer] Running Linear Mixed Effects (LME) Model

2018-03-04 Thread Kaushal, Mayank
Dear Freesurfer Community, Running lhstats = lme_mass_fit_vw(X,[1 2],Y,ni,lhcortex); gives the following error, Starting parallel pool (parpool) using the 'local' profile ... Error using parpool (line 104) You requested a minimum of 8 workers, but the cluster "local" has the NumWorkers property