Displaying 1 result from an estimated 1 matches for "tf2593044".
2006 Nov 08
2
chisq test with for loop
...his but it doesn't
work now. can anybody help me? thanks in advance.
x=read.table("C:\...)
d=ncols(x)
z<=matrix(0,d,d)
for(i in 1:d)
for(j in 1:d)
z[i,j]<=chisq.test(x[,i],x[,j])$p.value
round(z,3)
--
View this message in context: http://www.nabble.com/-R---chisq-test-with-for-loop-tf2593044.html#a7232065
Sent from the R help mailing list archive at Nabble.com.