How to interpret these Linear Mixed Model results?
32 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
Hello again!
I'll try to explain quickly the variables. I'm testing each participant two times (two conditions - N.B.: it's not a longitudinal study, each subject is just tested 2 times in 2 different conditions). The response variable, named sigma, should depend on the fixed factor, named ecc_bins (shortly, it's a vector of different visual degrees). Teorically, the bigger the visual degree the bigger the sigma and I need to check if this relation (visual degree and sigma) changes - and how - in the two conditions.
Variables and Formula:
- Y variable (dependent, response variable) is called sigma (floats);
- Fixed effect (independent variable) called ecc_bins (from 1 to 10) - each sigma is associated with a specific bin;
- Random effect that is the participant (participant's numeric code).
- Grouping variable is the condition (integer 1 or 2).
y ~ fixed + (random1|grouping1) + ... + (randomR|groupingR)
I wrote it like the following
lme = fitlme(tbl, 'sigma ~ ecc_bins + (participant | condition)');
Then, the result gives me
Fixed effects coefficients (95% CIs):
Name Estimate SE tStat DF pValue Lower Upper
'(Intercept)' 1.0459 0.0078397 133.41 1.6148e+05 0 1.0305 1.0613
'ecc_bins' 0.79073 0.0019764 400.09 1.6148e+05 0 0.78686 0.79461
Random effects covariance parameters (95% CIs):
Group: condition (2 Levels)
Name1 Name2 Type Estimate Lower Upper
'(Intercept)' '(Intercept)' 'std' 0.26803 NaN NaN
'participant' '(Intercept)' 'corr' -1 NaN NaN
'participant' 'participant' 'std' 0.01971 NaN NaN
I have a problem in interpreting these results.
1) I can see the significant p value for the fixed effect "ecc_bins" but what if I'd like to check which bin is significant and which not (post hoc?)? And why the lower and higher values for the random factor are NaN?
Moreover, when I check the random effects of the model
[B, Bnames, stats] = randomEffects(lme)
I got something like:
Random effect coefficients: DFMethod = 'Residual', Alpha = 0.05
Group Level Name Estimate SEPred tStat DF pValue Lower Upper
'condition' '1' '(Intercept)' -0.34986 0.01594 -21.948 1.6148e+05 0 -0.38111 -0.31862
'condition' '1' 'participant' 0.025728 0.0011722 21.948 1.6148e+05 0 0.023431 0.028026
'condition' '2' '(Intercept)' -0.14421 0.017638 -8.1763 1.6148e+05 4.4409e-16 -0.17878 -0.10964
'condition' '2' 'participant' 0.010605 0.001297 8.1763 1.6148e+05 4.4409e-16 0.0080628 0.013147
The low p values, in this case, mean that the 2 conditions are significantly different one from the other?
I'm really trying all the possibilities. I'm open to the chance that I've completely messed up the model.
Thank you for your help!
9 Commenti
Jeff Miller
il 13 Feb 2021
That looks to me like an ANOVA design with 2 repeated-measures factors (bins*condition). If participant is the only random factor, then I think LME is overkill.
Risposte (0)
Vedere anche
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!