Learn R Programming

nbc4va (version 1.2)

internalGetCSMFAcc: Calculate CSMF accuracy

Description

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

Usage

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

Run this code
# NOT RUN {
library(nbc4va)
pred <- c("HIV", "Stroke", "HIV", "Stroke")
obs <- c("HIV", "HIV", "Stroke", "Stroke")
csmfa <- nbc4va::internalGetCSMFAcc(pred, obs)

# }

Run the code above in your browser using DataLab