Description Usage Arguments Value Author(s) References See Also Examples
This function takes a contingency table as calculated with table
or crosstab
and computes an accuracy assessment, including the total accuracy, the user accuracy and the producer accuracy.
1 | AccuracyAssessment(tab)
|
tab |
contingency table as calculated with |
The function returns the same frequency table as the input but with added row and column totals and total accuracy, user accuracy and producer accuracy.
Matthias Forkel <matthias.forkel@tu-dresden.de> [aut, cre]
Congalton, R.G. (1991): A review of assessing the accuracy of classifications of remotely sensed data. - Remote Sensing of Environment 1991, 37, 35-46.
CompareClassification
, Kappa
, TrendClassification
1 2 3 4 5 6 7 8 9 | # two classifications:
a <- c(1, 1, 1, 2, 2, 2, 3, 4, 5, 5, 5, 1, 1, 1, 2, 2, 2, 3, 4, 5, 5, 3, 3, 2, 2)
b <- c(1, 2, 1, 2, 2, 2, 3, 4, 2, 2, 5, 1, 2, 2, 2, 1, 2, 3, 4, 5, 5, 3, 3, 2, 2)
# calculate first a contingency table
tab <- table(a, b)
# calculate now the accuracy assessment
AccuracyAssessment(tab)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.