matchedprop.conf: Confidence Functions for the Difference of Two Matched...

Description Usage Arguments Value References Examples

View source: R/prop.R

Description

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

Usage

1
matchedprop.conf(b, c, n, plot = TRUE, conf.level = 0.95)

Arguments

b

the number of trials where the first outcome is a failure and the second outcome is a success

c

the number of trials where the first outcome is a success and the second outcome is a failure

n

the number of trials

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 matched proportions, as well as the P-curve and S-curve.

References

Toshiro Tango. "Equivalence test and confidence interval for the difference in proportions for the paired‐sample design." Statistics in Medicine 17.8 (1998): 891-908.

Examples

1
matchedprop.conf(b = 5, c = 10, n = 100)

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