Wald_test_1x2: The Wald test for the binomial probability (pi)

Description Usage Arguments Examples

View source: R/Wald_test_1x2.R

Description

The Wald test for the binomial probability (pi)

H_0: pi = pi0 vs H_A: pi ~= pi0 (two-sided)

Usage

1
Wald_test_1x2(X, n, pi0, printresults = TRUE)

Arguments

X

the number of successes

n

the total number of observations

pi0

a given probability

printresults

display results (0 = no, 1 = yes)

Examples

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

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