Sample size computation for GLMMs

MLPowSim is a piece of software for estimating sample size by simulation for data to be modelled using GLMMs, including for instance logistic regression with crossed random effects.  It spews out R (and MLwiN) code for doing the simulations.  Screenshot below:


Haven’t had time to play much yet, but you answer a load of questions, e.g., what sort of model, how many predictors, what random effects, estimate for slope, etc, etc.  Looks useful!  I suspect it might be easiest to generate a few example R scripts using the package and then hack them by hand.  I stopped when it asked  me, “There are more than one random effects associated by the first factor in your model and so you need to enter variance and covaraince matrix.”


Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s