Analyzing Latent Variables With Observational Data And Applications In Infectious Disease