McElreath

Multilevel models and the index-variable approach

PhD candidate Huaiyu Liu recently reached out with a question about how to analyze clustered data. Like any good question, this one got my gears turning. Thanks, Liu! The purpose of this post will be to show how to model clustered data in two different ways.