Mixed Models: Theory and Applications with R