Cluster Standard Errors with fitlm
13 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
I have panel data (county, year) and want to run a regression with individual-specific effects that are uncorrelated (a fixed effects regression in economics parlance). Does fitlm automatically cluster the standard errors? If not, is there a way to do this?
4 Kommentare
Aditya Patil
am 22 Sep. 2021
Can you have a look at the examples provided in https://www.mathworks.com/help/stats/fitlme.html and let me know if this serves your usage? By providing random effect as (1 + x | g), you should be able to have correlation within group errors, while errors outside group will be uncorrelated.
Antworten (1)
Aditya Patil
am 16 Jul. 2021
Currently, clustered standard errors is not supported in Statistics and Machine Learning Toolbox. I have brought the request to the notice of concerned developers.
0 Kommentare
Siehe auch
Kategorien
Mehr zu Statistics and Machine Learning Toolbox finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!