Generalized latent variable models with non-linear effects