(This article was originally published at Statistical Modeling, Causal Inference, and Social Science, and syndicated at StatsBlogs.)
Joe Simmons and Uri Simonsohn have an interesting post here. Unfortunately their blog doesn’t have a comment section so I’m commenting here.
They write this at the end of their post:
Another is to use daily dummies. This option can easily be worse. It can lower statistical power by throwing away data. First, one can only apply daily fixed effects to data with at least two observations per calendar date. Second, this approach ignores historical weather data that precedes the dependent variable. For example, if using sales data from 2013-2015 in the analyses, the daily fixed effects force us to ignore weather data from any prior year. Lastly, it ‘costs’ 365 degrees-of-freedom (don’t forget leap year), instead of 1.
With multilevel models you can control for variation at different levels without worrying about running out of degrees of freedom. That’s one of the big selling points of multilevel modeling. Give it a shot.
Counting degrees of freedom is so 20th century.
P.S. Regular readers know I have a lot of respect for Simmons and Simonsohn. But, just for those of you who were not aware: these guys have done some great work. That’s on reason for this post: These are two thoughtful, careful researchers who are well-versed in quantitative psychology. But they don’t know about multilevel models. They should.
The post Controlling for variation in the weather in a regression analysis: Joe and Uri should learn about multilevel models and then they could give even better advice appeared first on Statistical Modeling, Causal Inference, and Social Science.
Please comment on the article here: Statistical Modeling, Causal Inference, and Social Science
