Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

pickTstat

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

Exact Tests and Confidence Intervals for 2x2 Tables

v1.6.5
GPL-3
Authors
Michael P. Fay [aut, cre], Sally A. Hunsberger [ctb], Martha Nason [ctb], Erin Gabriel [ctb], Keith Lumbard [ctb]
Initial release
2020-08-02

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.