print.nbc_summary | R Documentation |
Prints a summary message from a summary.nbc
object of
the top causes by probability or predicted Cause Specific Mortality Fraction (CSMF).
## S3 method for class 'nbc_summary' print(x, ...)
x |
A |
... |
Additional arguments to be passed if applicable. |
See Methods documentation for details on CSMF and probability from the Naive Bayes Classifier.
Prints a summary of the top causes of death by probability for the NBC model.
Other main functions:
nbc()
,
plot.nbc()
,
summary.nbc()
library(nbc4va) data(nbc4vaData) # Run naive bayes classifier on random train and test data train <- nbc4vaData[1:50, ] test <- nbc4vaData[51:100, ] results <- nbc(train, test) # Print a summary of all the test data for the top 3 causes by predicted CSMF brief <- summary(results, top=3) print(brief)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.