Bayesian Nonparametric Methods for Complex Datasets