R2latvar function

R-squared for Latent Variable Models