Summary method for the nb function

# S3 method for nb
summary(object, dec = 3, ...)

Arguments

object

Return value from nb

dec

Decimals

...

further arguments passed to or from other methods

Details

See https://radiant-rstats.github.io/docs/model/nb.html for an example in Radiant

See also

nb to generate results

plot.nb to plot results

predict.nb for prediction

Examples

result <- nb(titanic, "survived", c("pclass", "sex", "age")) summary(result)
#> Naive Bayes Classifier #> Data : titanic #> Response variable : survived #> Levels : Yes, No in survived #> Explanatory variables: pclass, sex, age #> Laplace : 0 #> Nr obs : 1,043 #> #> A-priori probabilities: #> survived #> Yes No #> 0.407 0.593 #> #> Conditional probabilities (categorical) or means & st.dev (numeric): #> pclass #> survived 1st 2nd 3rd #> Yes 0.421 0.271 0.308 #> No 0.167 0.236 0.597 #> #> sex #> survived female male #> Yes 0.682 0.318 #> No 0.155 0.845 #> #> age #> survived mean st.dev #> Yes 28.819 15.004 #> No 30.497 13.881 #>