prop.conf.2s: Confidence Functions for the Difference of Two Proportions

Description Usage Arguments Value References Examples

View source: R/prop.R

Description

Confidence functions for the difference of two binomial proportions based on the score statistic.

Usage

1
prop.conf.2s(x, n, plot = TRUE, conf.level = 0.95)

Arguments

x

a vector of counts of successes in each independent sample

n

a vector of the number of trials in each independent sample

plot

whether to plot the confidence density and curve

conf.level

the confidence level for the confidence interval indicated on the confidence curve

Value

A list containing the confidence functions pconf, dconf, cconf, and qconf for the difference of two proportions, as well as the P-curve and S-curve.

References

Olli Miettinen and Markku Nurminen. "Comparative analysis of two rates." Statistics in Medicine 4.2 (1985): 213-226.

Markku Nurminen. "Confidence intervals for the difference and ratio of two binomial proportions." Biometrics 42 (1986): 675-676.

Examples

1
prop.conf.2s(x = c(1, 2), n = c(10, 10))

ddarmon/clp documentation built on Jan. 25, 2021, 6:22 p.m.