[Corpora-List] Software to find correlations in table

Stefan Th. Gries stgries at gmail.com
Thu Jul 17 16:13:15 UTC 2008


> I have a table containing records with several textual values. I would like to find correlations among all the columns of the table. Is there an (easy and free) software that would allow me that?

R (<http://www.r-project.org/> and
<http://groups.google.com/group/corpling-with-r/web/quantitative-corpus-linguistics-with-r>)
can do that. If you have a table like this (best viewed with a
non-proportional font),

   yy
xx   n  o  p  q  r  s
  a 35 41 32 45 41 44
  b 40 39 43 41 34 45
  c 42 44 40 39 46 42
  d 47 48 54 36 38 44

then this gives you all pairwise product-moment correlations:

> round(cor(table(xx, yy)), 3)
       n      o      p      q      r      s
n  1.000  0.806  0.951 -0.996 -0.080 -0.160
o  0.806  1.000  0.692 -0.789  0.303 -0.406
p  0.951  0.692  1.000 -0.924 -0.375  0.153
q -0.996 -0.789 -0.924  1.000  0.022  0.228
r -0.080  0.303 -0.375  0.022  1.000 -0.956
s -0.160 -0.406  0.153  0.228 -0.956  1.000

HTH,
STG
--
Stefan Th. Gries
-----------------------------------------------
University of California, Santa Barbara
http://www.linguistics.ucsb.edu/faculty/stgries
-----------------------------------------------

_______________________________________________
Corpora mailing list
Corpora at uib.no
http://mailman.uib.no/listinfo/corpora



More information about the Corpora mailing list