power_fisher_boschloo: Power Calculation for the Fisher-Boschloo-Test

Description Usage Arguments Details Value Examples

View source: R/n_fisher_boschloo.R

Description

power_fisher_boschloo performs the exact power calculation for the fisher-boschloo test. The method used here is written by S. Wellek. See [2] for further details.

Usage

1
power_fisher_boschloo(p_Y, p_X, n_Y, n_X, alpha, SW = 1e-04, MAXH = 10)

Arguments

p_Y

Event rate of Group Y on the alternative.

p_X

Event rate of Group X on the alternative.

n_Y

Sample size of Group Y.

n_X

Sample size of Group X.

alpha

Significance level α.

SW

Default = .001. Step width.

MAXH

Default = 10.

Details

[2] S. Wellek: Nearly exact sample size calculation for powerful non-randomized tests for differences between binomial proportions [2015], Statistica Neerlandica

Value

n_fisher_boschloo returns an object of type list. The resulting Sample Sizes are located in entrys named n_X, n_Y, n. The resulting power is named power_out.

Examples

1
power_fisher_boschloo(p_Y = .5, p_X = .3, n_Y = 70, n_X = 40, alpha = .025)

goseberg/samplesizr documentation built on May 28, 2019, 8:43 a.m.