필터 지우기
필터 지우기

don't understand output of fitlme, intercept substituted for first line.

조회 수: 4 (최근 30일)
Emu
Emu 2024년 5월 14일
답변: the cyclist 2024년 5월 14일
Hi - I fit some linear mixed effect models using fitlme , but the output always substitutes 'intercept' for the first line of the fixed effect coefficiants. Why is this?
Fixed effects coefficients (95% CIs):
Name Estimate SE tStat DF pValue Lower
{'(Intercept)' } -1.984e-05 6.4305e-06 -3.0853 37 0.0038374 -3.2869e-05
{'voc_registers_ADS' } -9.3714e-06 6.9456e-06 -1.3493 37 0.18545 -2.3444e-05
{'voc_registers_nonSpeech'} 5.4826e-06 6.4513e-06 0.84985 37 0.40088

답변 (1개)

the cyclist
the cyclist 2024년 5월 14일
The output is not substituting 'Intercept' for a level of your coefficient.
It looks like your variable voc_registers is categorical, and has three categories:
  • ADS
  • nonSpeech
  • anotherOne <------ Not possible for me to know the name, from the output
In this case, MATLAB is using 'anotherOne' as the reference category. (This is described in the documentation for fitlme.) By construction, the coefficient of the reference category is zero, and it is not listed in the output.
'Intercept' is the estimate of the mean when continuous explanatory variables are zero, and categorical explanatory variables are at the reference. So, if your model is
'y ~ alpha + beta*voc_registers'
it is the estimate of the value of alpha.
It can be a bit more complicated, if you have both fixed and random effects for the intercept.

카테고리

Help CenterFile Exchange에서 Correlation and Convolution에 대해 자세히 알아보기

제품


릴리스

R2023b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by