exact2x2Plot {exact2x2}R Documentation

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

Description

Plots two-sided p-values as a function of odds ratios. Can plot three types of p-values: the two-sided Fisher's exact, the central Fisher's exact (i.e., twice the one-sided Fisher's exact), and Blaker's exact.

Usage

exact2x2Plot(x, OR = NULL, ndiv = 1000, method = "minlike", orRange = c(0.01, 10), dolog = TRUE, dolines = FALSE, dopoints = FALSE, newplot = TRUE, ...)

Arguments

x matrix representing the 2 by 2 table
OR odds ratio values for plot, if NULL divides orRange into ndiv pieces
ndiv number of pieces to divide up odds ratio range
method either "minlike","blaker" or "central"
orRange range for calculating odds ratios
dolog logical,plot odds ratios on log scale?
dolines logical, add lines to a plot?
dopoints logical, add points to a plot?
newplot logical,start a new plot?
... values passed to plot, points, or lines statement

See Also

exact2x2

Examples

example1<-matrix(c(6,12,12,5),2,2,dimnames=list(c("Group A","Group B"),c("Event","No Event")))
example1
exact2x2Plot(example1)
## add lines from central Fisher's exact
exact2x2Plot(example1,method="central",dolines=TRUE,newplot=FALSE,col="red")

[Package exact2x2 version 1.0-0 Index]