Thomas Lumley 2/21/2023

Sandwiches and aggregation

Read Original

This technical article examines a question about the 'sandwich' package in R for robust standard errors. It explores how aggregating binary or count data in Poisson and log-binomial regression models affects the variance-covariance matrix estimates from vcovHC(), demonstrating differences between individual-level and aggregated models with code examples.

Sandwiches and aggregation

Comments

No comments yet

Be the first to share your thoughts!

Browser Extension

Get instant access to AllDevBlogs from your browser

Top of the Week

1
The Beautiful Web
Jens Oliver Meiert 2 votes
3
LLM Use in the Python Source Code
Miguel Grinberg 1 votes
4
Wagon’s algorithm in Python
John D. Cook 1 votes