Measuring Latent Variables in Space and/or Time. A Latent Markov Model Approach