latent_trait_analysis function

Performs the latent trait analysis