Mixed effects with random slopes app

(Click image to open app)

This app simulates data from a mixed effects model 

Short overview:

User can change parameter values, sample size, and number of random factor levels in a mixed model with 2 fixed factor levels and 2 to 20 random factor levels.  Random factor can be nested in or crossed with fixed factor.  Random intercepts (no interaction), random slopes (interaction), or ANOVA (no random factor) models can be fit.  Data can be simulated from a model with or without interaction, independent of which model is used to fit the simulated data.  Estimated treatment means and random factor means can be plotted.  Fixed and random effects summary output and conditional and marginal R-squared from the fitted model are reported. 

Important details:

The remaining bullet points address aspects of the random slopes (i.e. interaction) model: