Skip to content
Prev 13946 / 20628 Next

Simulating Data from a Linear Mixed Model

If you are willing to write the model in BUGS, you can use NIMBLE (R-nimble.org <http://r-nimble.org/>) to simulate from it.  One of the examples from the web site illustrates how to set up a GLMM in BUGS, and you can do it more compactly using linear algebra if you?d like.
Perry