Description Usage Arguments Value Author(s) References Examples
accuracy takes two objects inheriting from class
'VegsoupPartition' (obj1 and obj1) and computes a
cross-tabulation (contingency table) of reference (observed) (obj1)
vs. compoarison (predicted) class memberships (obj2), and calculates
a range of statistics about prediction accuracy.
| 1 |   accuracy(obj1, obj2)
 | 
|  obj1  | an object of class  | 
|  obj2  | a second object of class  | 
A list with the following components:
accuracyOverall prediction accuracy
recall.predictedRecall of prediction for each outcome value
precision.predictedPrecision of prediction for each outcome value
lambda.predictionlambda for prediction accuracy (improvement over baseline of always predicting mode)
tau.classificationtau for classification accuracy (improvement over baseline of homogeneous distribution of predicted outcomes)
d.lambda.predictiond(lambda): used for calculating P(lambda)
d.tau.classificationd(tau): used for calculating P(tau)
p.lambda.predictionP(lambda): probability of reaching lambda by chance
p.tau.classificationP(tau): probability of reaching tau by chance
Adopted by Roland Kaiser for vegsoup from code by Antti Arppe for function crosstable.statistics in package polytomous
Menard, Scott (1995). Applied Logistic Regression Analysis. Sage University Paper Series on Quantitative Applications in the Social Sciences 07-106. Thousand Oaks: Sage Publications.
| 1 2 3 4 5 6 7 | 
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.