Description Usage Arguments Details Value Author(s) References See Also Examples
Cross-classifies each partition (clustering) by actual class membership and predicted membership, computes overall accuracy, and the Kappa statistic of agreement.
1 2 | ## S4 method for signature 'VegsoupPartition,VegsoupPartition'
confusion(obj1, obj2)
|
obj1, obj2 |
|
Method confusion
takes two objects inheriting from class
VegsoupPartition
and computes a
cross-tabulation (contingency table) of reference (observed, obj1
)
vs. comparison (predicted, obj2
) class memberships, and calculates
the Kappa and Goodman-Kruskal lambda statistics.
A list with the following components:
the cross tabulation of obj1
(rows) and obj2
(columns).
the percentage of correctly predicted samples.
the value of the Kappa statistic.
the value of the Lambda statistic.
Roland Kaiser
Goodman, L. A. and Kruskal, W. H. 1954 Measures of association for cross-classifications. Journal of the American Statistical Association 49, 732–764.
VegsoupPartition
,
accuracy
in package 'vegsoup.
confus
in package optpart and
1 2 3 4 5 6 7 8 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.