[R] 2 x 2 Contingency Tables and Type II Error

Rui Barradas ruipbarradas at sapo.pt
Sun Dec 2 20:07:28 CET 2012


Hello,

See package pwr, function pwr.chisq.test()
See also

http://www.statmethods.net/stats/power.html


Hope this helps,

Rui Barradas
Em 02-12-2012 18:21, Lorenzo Isella escreveu:
> Dear All,
> I am struggling with a the calculation of the type II error (i.e. what 
> leads to the statistical power) for a 2 x 2 contingency table.
> I see that R can easily accomplish a lot with the chi-square on a 
> contingency table
>
> http://bit.ly/VeCrxP
>
> but I do not find an indication for the probability of accepting the 
> null hypothesis when it is false.
> Am I missing the obvious?
> Many thanks
>
> Lorenzo
>
> ______________________________________________
> R-help at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide 
> http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.




More information about the R-help mailing list