-
Notifications
You must be signed in to change notification settings - Fork 9
Linear Mixed Models
In a GLM setting,
y = Xβ + ε
only ε is the random effect:
ε is normally distributed and has a mean of zero. If you applied regression with such assumption, then it doesn't matter your data is actually from multiple subjects:
_The data are the same as above, with each subject outlined in different color_In real life research, things usually get messy, for example:
or
And these situations can be handle perfectly in a Linear Mixed Model, which expressed these effect as random:
y = Xβ + Zb + ε
In , we can expressed the subject intercept as the random effect, which gives us a random intercept model.
In , we just add the fixed predictor as a separate column into the Z from above, returning a random intercept and slope model.
And the same could be applied with categorical predictor, for example, a random slope model below (with no random intercept):
Using linear mixed model, you can take into account effect such as mixed-effect (i.e., both within- and between- subject effect) and repeated measurements. And with iMap4, you can now applied this powerful model on your eye tracking data as well!
Mixed models are a complex subject and many underlying details are beyond the scope of this paper. For a general thoughtful introduction to mixed models, users of the toolbox should refer to Raudenbush & Bryk (2002) and McCulloch, Searle & Neuhaus (2011).
iMap4 calls LinearMixedModel from Matlab for model estimations. You can find the relate concepts in Matlab help file:
Linear Mixed-Effects Models
This page explains the basic concept of Linear Mixed Model.
Estimating Parameters in Linear Mixed-Effects Models
This page explains the methods for estimating parameters in Matlab: Maximum likelihood estimation (ML) and Restricted maximum likelihood estimation (ReML).
Linear formula notation (Wilkinson Notation)
This page explains how to express your linear formula.
This wiki is adapted from the original iMap4 guidebook.
If you have any questions about the iMap4 usage, please email [email protected]
Getting started
Theory
- Linear Mixed Models
- Pixel Wise Modeling and non-parametric statistics
- Family-wise error rate (FWER) under H0
- Power analysis of iMap4
Data structures and function usage
- Core functions
- Input Matrix
- LMMmap
- StatMap, Posthoc and figure outputs
- Other useful features and function
Example 1 (GUI)
- Background of Example 1
- Using the GUI (1): Import Data and label columns
- Using the GUI (2): Parameters and Conditions
- Using the GUI (3): Create smoothed fixation matrix
- Using the GUI (4): Optional for preprocessing
- Using the GUI (5): Descriptive Statistics Report
- Using the GUI (6): Spatial Mapping Using Linear Mixed Models
- Using the GUI (7): Hypothesis testing and Display results
- Using the GUI (8): Post-hoc analysis
Example 2 (Code)
Example 3 (Code)
Example 4 (Code)
Future development
Additional information