Learn R Programming

petersenlab (version 1.1.0)

accuracyOverall: Overall Accuracy.

Description

Find overall accuracy.

Usage

accuracyOverall(predicted, actual, dropUndefined = FALSE)

wisdomOfCrowd(predicted, actual, dropUndefined = FALSE)

Value

  • ME = mean error

  • MAE = mean absolute error

  • MSE = mean squared error

  • RMSE = root mean squared error

  • MPE = mean percentage error

  • MAPE = mean absolute percentage error

  • sMAPE = symmetric mean absolute percentage error

  • MASE = mean absolute scaled error

  • RMSLE = root mean squared log error

  • rsquared = R-squared

  • rsquaredAdj = adjusted R-squared

  • rsquaredPredictive = predictive R-squared

Arguments

predicted

vector of continuous predicted values.

actual

vector of actual values.

dropUndefined

TRUE or FALSE, indicating whether to drop any undefined values calculated with the accuracy indices.

Details

Compute overall accuracy estimates of predicted values in relation to actual values. Estimates of overall accuracy span all cutoffs. Some accuracy estimates can be undefined under various circumstances. Optionally, you can drop undefined values in the calculation of accuracy indices. Note that dropping undefined values changes the meaning of these indices. Use this option at your own risk!

See Also

Examples

Run this code
# Prepare Data
data("USArrests")

# Calculate Accuracy
accuracyOverall(predicted = USArrests$Assault, actual = USArrests$Murder)
wisdomOfCrowd(predicted = USArrests$Assault, actual = 200)

Run the code above in your browser using DataLab