Bayesian nonparametric analysis for a generalized Dirichlet process prior