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

Description Usage Arguments Details Value

View source: R/uncondExact2x2.R

Description

Called from uncondExact2x2.

Usage

1
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.


exact2x2 documentation built on Dec. 11, 2021, 9:43 a.m.