Maximum likelihood estimation of latent interaction effects with the LMS method