binomial_naive_bayes {minSNPs}R Documentation

binomial_naive_bayes

Description

binomial_naive_bayes is an implementation of the binomial naive bayes algorithm. modified from bernoulli_naive_bayes function in the naivebayes package

Usage

binomial_naive_bayes(x, y, prior = NULL, laplace = 1, ...)

Arguments

x

a matrix with numeric: 0,1, up to binomial_n columns

y

a factor or character or logical vector

prior

a vector of prior probabilities

laplace

a numeric value for Laplace smoothing

...

additional arguments

Value

return a binomial_naive_bayes object


[Package minSNPs version 0.2.0 Index]