Learn R Programming

proportion (version 2.0.0)

errAAll: Calculates error, long term power and pass/fail criteria using 6 adjusted methods (Wald, Wald-T, Likelihood, Score, Logit-Wald, ArcSine)

Description

Calculates error, long term power and pass/fail criteria using 6 adjusted methods (Wald, Wald-T, Likelihood, Score, Logit-Wald, ArcSine)

Usage

errAAll(n, alp, h, phi, f)

Arguments

n
- Number of trials
alp
- Alpha value (significance level required)
h
- Adding factor
phi
- Null hypothesis value
f
- Failure criterion

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

Details

Calculates error, long term power and pass/fail criteria using 6 adjusted methods (Wald, Wald-T, Likelihood, Score, Logit-Wald, ArcSine)

See Also

Other Error for adjusted methods: PloterrAAS, PloterrAAll, PloterrALR, PloterrALT, PloterrASC, PloterrATW, PloterrAWD, errAAS, errALR, errALT, errASC, errATW, errAWD

Examples

Run this code
n=20; alp=0.05;h=2; phi=0.99; f=-2
errAAll(n,alp,h,phi,f)

Run the code above in your browser using DataLab