Description Usage Arguments Value Examples
Calculates permutation p-values for testing independence in 2x2 case-control tables.
1 | perm.tests(m0, m1, r0, r1, lowthresh = 1e-12)
|
m0 |
Number of control subjects |
m1 |
Number of case subjects |
r0 |
Number of control subjects exposed |
r1 |
Number of case subjects exposed |
lowthresh |
A threshold for probabilities below to be considered as zero. Defaults to 1e-12. |
A vector of permutation p-values, computed under score, likelihood ratio, Wald, and Firth tests.
1 | perm.tests(15000, 5000, 30, 25)
|
score.p lr.p wald.p wald0.p firth.p
0.0007888190 0.0014766080 0.0007644937 0.0007646248 0.0009174857
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.