Called from uncondExact2x2
.
pickTstat(method, parmtype, tsmethod, alternative)
A function that has the following arguments:
vector, number of events in group 1
sample size in group 1
vector, number of events in group 2
sample size in group 2
null parameter value
and outputs a vector the same length as X1 and X2.
method type, one of "simple", "wald-pooled", "wald-unpooled", "score" (see details)
type of parameter of interest, one of "difference", "ratio" or "oddsratio" (see details)
two-sided method, either "central" or "square" (see details)
alternative hypothesis, one of "two.sided", "less", or "greater", default is "two.sided"
See 'details' section of uncondExact2x2
.