Blaker_midP_CI_1x2: The Blaker mid-P confidence interval for the binomial...

Description Usage Arguments References Examples

View source: R/Blaker_midP_CI_1x2.R

Description

The Blaker mid-P confidence interval for the binomial probability Described in Chapter 2 "The 1x2 Table and the Binomial Distribution"

Usage

1
Blaker_midP_CI_1x2(X, n, alpha = 0.05, printresults = TRUE)

Arguments

X

the number of successes

n

the total number of observations

alpha

the nominal level, e.g. 0.05 for 95% CIs

printresults

display results (F = no, T = yes)

References

Blaker H (2000) Confidence curves and improved exact confidence intervals for discrete distributions. The Canadian Journal of Statistics; 28:783-798

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
load_chapter(2)
# The number of 1st order male births (Singh et al. 2010)
Blaker_midP_CI_1x2(X=250, n=533)
# The number of 2nd order male births (Singh et al. 2010)
Blaker_midP_CI_1x2(X=204, n=412)
# The number of 3rd order male births (Singh et al. 2010)
Blaker_midP_CI_1x2(X=103, n=167)
# The number of 4th order male births (Singh et al. 2010)
Blaker_midP_CI_1x2(X=33, n=45)
# Ligarden et al. (2010)
Blaker_midP_CI_1x2(X=13, n=16)
unload_chapter(2)

ocbe-uio/contingencytables documentation built on Feb. 27, 2021, 4:10 p.m.