Hi List, I'm trying to learn more about mixed models in detail. Does anyone know of any examples where code is provided showing simple examples of doing this from scratch. For example, setting up a likelihood, using optim, and things like that. Thanks, Juliet