PlotexplEX: Plot for Exact method of expected length calculation

Description Usage Arguments Details See Also Examples

View source: R/302.Expec_Leng_BASE_All_Graph.R

Description

Plot for Exact method of expected length calculation

Usage

1
PlotexplEX(n, alp, e, a, b)

Arguments

n

- Number of trials

alp

- Alpha value (significance level required)

e

- Exact method indicator in [0, 1] 1: Clopper Pearson, 0.5: Mid P The input can also be a range of values between 0 and 1.

a

- Beta parameters for hypo "p"

b

- Beta parameters for hypo "p"

Details

Plot of Confidence interval for p based on inverting equal-tailed binomial tests with null hypothesis H0: p = p0 using expected length of the n + 1 intervals.

See Also

Other Expected length of base methods: PlotexplAS, PlotexplAll, PlotexplBA, PlotexplLR, PlotexplLT, PlotexplSC, PlotexplTW, PlotexplWD, PlotlengthAS, PlotlengthAll, PlotlengthBA, PlotlengthEX, PlotlengthLR, PlotlengthLT, PlotlengthSC, PlotlengthTW, PlotlengthWD, lengthAS, lengthAll, lengthBA, lengthEX, lengthLR, lengthLT, lengthSC, lengthTW, lengthWD

Examples

1
2
3
4
5
6
7
8
9
## Not run: 
n=5; alp=0.05;e=0.5;a=1;b=1
PlotexplEX(n,alp,e,a,b)
n=5; alp=0.05;e=1;a=1;b=1 #Clopper-Pearson
PlotexplEX(n,alp,e,a,b)
n=5; alp=0.05;e=c(0.1,0.5,0.95,1);a=1;b=1 #Range including Mid-p and Clopper-Pearson
PlotexplEX(n,alp,e,a,b)

## End(Not run)

proportion documentation built on May 1, 2019, 7:54 p.m.