View source: R/nbc4va_internal.R
| internalGetCSMFAcc | R Documentation |
Calculates the overall CSMF accuracy given any number of predicted cases and any number of observed cases.
internalGetCSMFAcc(pred, obs)
pred |
Chracter vector of predicted causes for each case. |
obs |
Character vector of observed causes for each case. |
csmfa Numeric value of the overall CSMF accuracy (see Methods documentation).
Other internal functions:
internalGetCSMFMaxError(),
internalGetCauseMetrics(),
internalGetMetrics(),
internalNBC()
library(nbc4va)
pred <- c("HIV", "Stroke", "HIV", "Stroke")
obs <- c("HIV", "HIV", "Stroke", "Stroke")
csmfa <- nbc4va::internalGetCSMFAcc(pred, obs)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.