internalGetCSMFAcc: Calculate CSMF accuracy

Description Usage Arguments Value See Also Examples

View source: R/nbc4va_internal.R

Description

Calculates the overall CSMF accuracy given any number of predicted cases and any number of observed cases.

Usage

1
internalGetCSMFAcc(pred, obs)

Arguments

pred

Chracter vector of predicted causes for each case.

obs

Character vector of observed causes for each case.

Value

csmfa Numeric value of the overall CSMF accuracy (see Methods documentation).

See Also

Other internal functions: internalGetCSMFMaxError, internalGetCauseMetrics, internalGetMetrics, internalNBC

Examples

1
2
3
4
library(nbc4va)
pred <- c("HIV", "Stroke", "HIV", "Stroke")
obs <- c("HIV", "HIV", "Stroke", "Stroke")
csmfa <- nbc4va:::internalGetCSMFAcc(pred, obs)

nbc4va documentation built on May 2, 2019, 1:42 p.m.