nb | R Documentation |
Naive Bayes using e1071::naiveBayes
nb(
dataset,
rvar,
evar,
laplace = 0,
data_filter = "",
arr = "",
rows = NULL,
envir = parent.frame()
)
dataset |
Dataset |
rvar |
The response variable in the logit (probit) model |
evar |
Explanatory variables in the model |
laplace |
Positive double controlling Laplace smoothing. The default (0) disables Laplace smoothing. |
data_filter |
Expression entered in, e.g., Data > View to filter the dataset in Radiant. The expression should be a string (e.g., "price > 10000") |
arr |
Expression to arrange (sort) the data on (e.g., "color, desc(price)") |
rows |
Rows to select from the specified dataset |
envir |
Environment to extract data from |
See https://radiant-rstats.github.io/docs/model/nb.html for an example in Radiant
A list with all variables defined in nb as an object of class nb
summary.nb
to summarize results
plot.nb
to plot results
predict.nb
for prediction
nb(titanic, "survived", c("pclass", "sex", "age")) %>% summary()
nb(titanic, "survived", c("pclass", "sex", "age")) %>% str()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.