drawlatentOR1 function

Samples latent variable z in the OR1 model