Learn R Programming

⚠️There's a newer version (1.6.9) of this package.Take me there.

exact2x2 (version 1.6.4.1)

Exact Tests and Confidence Intervals for 2x2 Tables

Description

Calculates conditional exact tests (Fisher's exact test, Blaker's exact test, or exact McNemar's test) and unconditional exact tests (including score-based tests on differences in proportions, ratios of proportions, and odds ratios, and Boshcloo's test) with appropriate matching confidence intervals, and provides power and sample size calculations. Gives melded confidence intervals for the binomial case (Fay, et al, 2015, ). Gives boundary-optimized rejection region test (Gabriel, et al, 2018, ), an unconditional exact test for the situation where the controls are all expected to fail.

Copy Link

Version

Install

install.packages('exact2x2')

Monthly Downloads

1,992

Version

1.6.4.1

License

GPL-3

Maintainer

Michael Fay

Last Published

June 30th, 2020

Functions in exact2x2 (1.6.4.1)

binomMeld.test

Melded Binomial Confidence Intervals and Tests
borrControl

Algorithm variables used by borrTest.
calcTall

Calculate all Tstat for all values of the (n1+1) X (n2+1) sample space from the two sample binomial problem.
boschloo

Boschloo's test for 2x2 Tables
uncondExact2x2-internal

Internal functions for unconditional exact tests.
uncondExact2x2

Unconditional exact tests for 2x2 tables
exact2x2-package

Exact Tests and Confidence Intervals for 2x2 Tables
mcnemarExactDP

Exact McNemar (Paired Binary) Test with Difference in Proportions
exact2x2Plot

Plot p-value function for one 2 by 2 table.
exact2x2

Exact Conditional Tests for 2 by 2 Tables of Count Data
borrOrderingInternal

BORR Ordering, internal calculation functions
borrTest

Boundary-Optimized Rejection Region Test
power2grid

Create grid for root search.
constrMLE.difference

Calculate constrained MLEs.
exact2x2-internal

Internal functions for exact2x2. Not to be called by user.
power2x2

Calculate exact power or sample size for conditional tests for two independent binomials.
ucControl

Algorithm variables used by uncondExact2x2.
powerPaired2x2

Power for exact McNemar's test
plotT

Plot or Print ordering function for unconditional exact test
pickTstat

Pick T statistic (ordering function) for unconditional exact test.
uncondPower2x2

Calculate power or sample size for any 2x2 test.
unirootGrid

Function to find a root by grid search.