我做了一个 Kappa 统计量 {Asbio}。
library("asbio")
reference<-c("hi","low","low","hi","low","med","med")
class1<-c("hi","hi","low","hi","med","med","med")
Kappa(class1,reference)
所以结果是:
$ttl_agreement
[1] 71.42857
$user_accuracy
hi low med
100.0 33.3 100.0
$producer_accuracy
hi low med
66.7 100.0 66.7
$khat
[1] 58.8
$table
reference
class1 hi low med
hi 2 1 0
low 0 1 0
med 0 1 2
我想要的是将此结果保存到表中:
ttl_agreement user_accuracy_hi user_accuracy_low user_accuracy_med ... etc.
71.42857 100.0 100.0 100
所以“整理”我的结果并将它们放在一个表格行中(带有列名)。我想让 Kappa 重复 100 次。也许我的问题是微不足道的,但我真的找不到答案......在此先感谢