Every time I think I know what's going on, suddenly there's another layer of complications.
RPubs - Notes for selection model and mixture pattern model