R: Pick T statistic (ordering function) for unconditional exact...

pickTstat {exact2x2} | R Documentation

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

### Description

Called from `uncondExact2x2`.

### Usage

    pickTstat(method, parmtype, tsmethod, alternative)

### Arguments

`method` | method type, one of "simple", "wald-pooled", "wald-unpooled", "score" (see details)
`parmtype` | type of parameter of interest, one of "difference", "ratio" or "oddsratio" (see details)
`tsmethod` | two-sided method, either "central" or "square" (see details)
`alternative` | alternative hypothesis, one of "two.sided", "less", or "greater", default is "two.sided"

### Details

See 'details' section of `uncondExact2x2`.

### Value

A function that has the following arguments:

`X1` | vector, number of events in group 1
`N1` | sample size in group 1
`X2` | vector, number of events in group 2
`N2` | sample size in group 2
`delta0` | null parameter value

and outputs a vector the same length as X1 and X2.

[Package exact2x2 version 1.6.3 Index]