Arcsine_CI_1x2: Arcsine confidence interval

Description Usage Arguments References Examples

View source: R/Arcsine_CI_1x2.R

Description

The Arcsine confidence interval for the binomial probability (with Anscombe variance stabilizing transformation) Described in Chapter 2 "The 1x2 Table and the Binomial Distribution"

Usage

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

References

Anscombe FJ (1948) The transformation of Poisson, binomial and negative binomial data. Biometrika; 35:246-254

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

ocbe-uio/contingencytables documentation built on Feb. 2, 2021, 2:51 p.m.