Re: [R] Contingency-Coefficient, Variance

From: Christoph Buser <>
Date: Mon 18 Jul 2005 - 17:34:03 EST


You can easily implement it by:

Mag. Ferri Leberl writes:
> Dear Everybody!
> Excuse me for this newbie-questions, but I have not found answers to these
> Question:
> - Is there a command calculating the variance if the whole group is known
> (thus dividing by n instead of n-1)?


> - Which is the command to calculate the
> - contingency-coefficient?

Have a look at ?chisq.test
There you can calculate and extract the chi-square statistic and then it is easy to program the needed formula. Please note that there is an argument "exact" in chisq.test(). You can set it on FALSE if you do not want to apply Yates continuity correction.


Christoph Buser

Christoph Buser <> Seminar fuer Statistik, LEO C13
ETH (Federal Inst. Technology)	8092 Zurich	 SWITZERLAND
phone: x-41-44-632-4673		fax: 632-1228

> Thank you in advance.
> Mag. Ferri Leberl
> ______________________________________________
> mailing list
> PLEASE do read the posting guide! mailing list PLEASE do read the posting guide! Received on Mon Jul 18 17:38:57 2005

This archive was generated by hypermail 2.1.8 : Fri 03 Mar 2006 - 03:33:46 EST