Chi square test in R

From Icelandic Parsed Historical Corpus (IcePaHC)
Revision as of 09:39, 7 November 2011 by Einarfs (Talk | contribs) (Created page with "data<-matrix(c(100,200,400,600),ncol=2) data [gives]: <pre> [,1] [,2] [1,] 100 400 [2,] 200 600 </pre> chisq.test(data,correct=F) [gives]: <pre> X-squared = 4.3333, ...")

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

data<-matrix(c(100,200,400,600),ncol=2)

data [gives]:

     [,1] [,2]
[1,]  100  400
[2,]  200  600

chisq.test(data,correct=F) [gives]:

X-squared = 4.3333, df = 1, p-value = 0.03737