Wilson_score_CI_CC_1x2: The Wilson score confidence interval with continuity...

Description Usage Arguments References Examples

View source: R/Wilson_score_CI_CC_1x2.R

Description

Described in Chapter 2 "The 1x2 Table and the Binomial Distribution"

Usage

1
Wilson_score_CI_CC_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 (0 = no, 1 = yes)

References

Reference Wilson EB (1927) Probable inference, the law of succession, and statistical inference. Journal of the American Statistical Association; 22209-212

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)
Wilson_score_CI_CC_1x2(X=250, n=533)
# The number of 2nd order male births (Singh et al. 2010)
Wilson_score_CI_CC_1x2(X=204, n=412)
# The number of 3rd order male births (Singh et al. 2010)
Wilson_score_CI_CC_1x2(X=103, n=167)
# The number of 4th order male births (Singh et al. 2010)
Wilson_score_CI_CC_1x2(X=33, n=45)
# Ligarden et al. (2010)
Wilson_score_CI_CC_1x2(X=13, n=16)
unload_chapter(2)

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