Notes on inference with mixed models