powered by
Naive Bayes using e1071::naiveBayes
nb(dataset, rvar, evar, laplace = 0, data_filter = "")
Dataset
The response variable in the logit (probit) model
Explanatory variables in the model
Positive double controlling Laplace smoothing. The default (0) disables Laplace smoothing.
Expression entered in, e.g., Data > View to filter the dataset in Radiant. The expression should be a string (e.g., "price > 10000")
A list with all variables defined in nb as an object of class nb
See https://radiant-rstats.github.io/docs/model/nb.html for an example in Radiant
summary.nb to summarize results
summary.nb
plot.nb to plot results
plot.nb
predict.nb for prediction
predict.nb
# NOT RUN { nb(titanic, "survived", c("pclass", "sex", "age")) %>% summary() nb(titanic, "survived", c("pclass", "sex", "age")) %>% str() # }
Run the code above in your browser using DataLab