csmf.nbc {nbc4va} | R Documentation |
Calculate predicted CSMFs from a NBC model
Description
Obtains the predicted Cause Specific Mortality Fraction (CSMF) from a result nbc
object.
Usage
csmf.nbc(object)
Arguments
object |
The result |
Value
out A numeric vector of the predicted CSMFs in which the names are the corresponding causes.
See Also
Other wrapper functions:
topCOD.nbc()
Examples
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)
# Obtain the predicted CSMFs
predCSMF <- csmf.nbc(results)
[Package nbc4va version 1.2 Index]