Statistical analysis of diversification with species traits