42  Random Slopes Visualization

Author

Josh Gilbert

The shiny app below allows you to set the various parameters of a random slopes multilevel model to see how they are reflected in the data. I often find it easiest to think of random slopes models in longitudinal contexts, so the app here asks for “people” and “timepoints”, but the same logic applies to cross sectional contexts, such as students nested within schools.

Exercises: