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

View source: R/uncondExact2x2.R

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


exact2x2 documentation built on Feb. 16, 2023, 10:11 p.m.