Bayesian Partition Models For Local Inference In Longitudinal And Survival Data