Modeling Covariates with Nonparametric Bayesian Methods