I am using the naivebayes
function of the e1071 library. Some example commands are:
model = naiveBayes(Species ~ ., data = iris)
pred = predict(model, iris[,])
My question is: how can I obtain the maximum likelihood estimate for the conditional probability distribution of this model?