On Thu, Jul 07, 2011 at 02:18:17PM -0700, m.marcinmichal wrote: > Hi, > Currently I testing the packets that contain built-in features for > classification. Actually I looked packages such as: e1071, Klar, Caret, > CORElearn. However, from what I noticed when building a naive Bayesian > classifier, that they package use of the finite mixture model to estimate P > (x | C) and using a normal distribution. In my research I use binary data > and I want modeled P (x | C), eg the Poisson distribution.
Hi. For binary attributes, the distribution P(x | C) is binomial. This is the way, how binary attributes are treated in function CoreModel(y ~ ., lrn, model="bayes") in package CORElearn. I assume that the binomial distribution is used also in other implementations of naive Bayes for binary data. Petr Savicky. ______________________________________________ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.