Bayes rule for estimating posteriors.
1 | bayes.rule(X, densities, pi, type = c("sum", "prod"))
|
X |
Matrix of predictors. |
type |
Calculate posteriors using raw products of probabilities or summation of logs of probabilities? "Sum" may offer superior floating point accuracy. |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.