Calculates error, long term power and pass/fail criteria using 5 continuity corrected methods (Wald, Wald-T, Score, Logit-Wald, ArcSine)

Share:

Description

Calculates error, long term power and pass/fail criteria using 5 continuity corrected methods (Wald, Wald-T, Score, Logit-Wald, ArcSine)

Usage

1
errCAll(n, alp, phi, c, f)

Arguments

n

- Number of trials

alp

- Alpha value (significance level required)

phi

- Null hypothesis value

c

- Continuity correction

f

- Failure criterion

Details

Calculates error, long term power and pass/fail criteria using 5 continuity corrected methods (Wald, Wald-T, Score, Logit-Wald, ArcSine)

Value

A dataframe with

delalp

Delta-alpha is the increase of the nominal error with respect to real error

theta

Long term power of the test

Fail_Pass

Fail/pass based on the input f criterion

method

Name of the method

References

[1] 2014 Martin Andres, A. and Alvarez Hernandez, M. Two-tailed asymptotic inferences for a proportion. Journal of Applied Statistics, 41, 7, 1516-1529

See Also

Other Error for continuity corrected methods: PloterrCAS, PloterrCAll, PloterrCLT, PloterrCSC, PloterrCTW, PloterrCWD, errCAS, errCLT, errCSC, errCTW, errCWD

Examples

1
2
n=5; alp=0.05; phi=0.05;c=1/(2*n); f=-2
errCAll(n,alp,phi,c,f)

Want to suggest features or report bugs for rdrr.io? Use the GitHub issue tracker.