Displaying 1 result from an estimated 1 matches for "pi_c".
Did you mean:
p_c
2005 Sep 02
1
Calculating Goodman-Kurskal's gamma using delta method
...ot;, "> 40,000"), c("VD", "LD", "MS",
"VS")))
The following code is for calculating gamma value, which is consistent
with the result presented in section 2.4.5 of that book.
C <- 0
D <- 0
for (i in 1:nrow(job)){
for (j in 1:ncol(job)){
pi_c <- 0
pi_d <- 0
for (h in 1:nrow(job)){
for (k in 1:ncol(job)){
if ((h > i & k > j) | (h < i & k < j)){
pi_c <- pi_c + job[h, k]/sum(job)
}
if ((h > i & k < j) | (h < i & k > j)){
pi_d <- pi_d + job[h, k]/sum(job)...