Learn R Programming

proportion (version 1.2.0)

PlotlengthEX: Plots the length summary for exact method

Description

Plots the length summary for exact method

Usage

PlotlengthEX(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, PlotexplEX, PlotexplLR, PlotexplLT, PlotexplSC, PlotexplTW, PlotexplWD, PlotlengthAS, PlotlengthAll, PlotlengthBA, PlotlengthLR, PlotlengthLT, PlotlengthSC, PlotlengthTW, PlotlengthWD, lengthAS, lengthAll, lengthBA, lengthEX, lengthLR, lengthLT, lengthSC, lengthTW, lengthWD

Examples

Run this code
## Not run: 
# n=5; alp=0.05;e=0.5;a=1;b=1 # Mid-p
# PlotlengthEX(n,alp,e,a,b)
# n=5; alp=0.05;e=1;a=1;b=1 #Clopper-Pearson
# PlotlengthEX(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
# PlotlengthEX(n,alp,e,a,b)
# ## End(Not run)

Run the code above in your browser using DataLab