와 Krippendorf의 알파 나는 irr::kripp.alpha
기능을 사용 Krippendorf's Alpha
을 계산하기 위해 노력하고 있습니다.IRR : 숫자가 아닌 분류 (경고 메시지)
내 입력 데이터는 비 수치 분류 구성 (예를 들면, "1.A", "1.B"등). 그럼에도 불구하고 - - 잘 작동 kripp.alpha()
를 사용할 때 함수가 보인다 다음과 같은 경고 메시지
Warning message:
In kripp.alpha(as.matrix(p8)) : NAs introduced by coercion
를 얻을.
어쨌든, 나는 다음과 같은 절차를 사용하여 경고 메시지를 제거하는 노력이 잘 작동
input <- data.frame(coder1=c("3.a","3.a","3.b.ii","3.b.ii","3.a","3.a","4.d","4.d"),
coder2=c("3.b","3.a","3.b.i","3.b.ii","3.a","3.a","4.d","4.d"))
# Gives the Warning Message
kripp.alpha(as.matrix(t(input)))
input <- unlist(input)
#Replace levels (strings) with unique numeric values
levels(input) <- 1:length(levels(input))
#Transform back into matrix format that kripp.alpha uses
input <- matrix(input, nrow=2)
kripp.alpha(input)
. 그러나 이러한 쉬운 작업에는 상당히 성가신 일입니다. 더 간단한 방법이 있습니까? 누가 비 숫자 분류 값을 사용할 때 함수가 경고 메시지를 표시하는지 설명 할 수 있습니까?