bonett_price: Confidence interval for the difference between two paired...

View source: R/da.R

bonett_priceR Documentation

Confidence interval for the difference between two paired proportions in a 2x2 table

Description

This function computes the Wald confidence interval with Bonett-Price Laplace adjustment confidence interval for the difference between two paired proportions. It gives the estimate as well.

Usage

bonett_price(n12, n21, N, alpha = 0.05)

Arguments

n12

corresponding cell frequency in 2x2 setting

n21

corresponding cell frequency in 2x2 setting

N

table total frequency

alpha

type I error

References

Fagerland MW, Lydersen S, Laake P. Recommended tests and confidence intervals for paired binomial proportions. Stat Med. 2014 Jul 20;33(16):2850-75. doi: 10.1002/sim.6148. Epub 2014 Mar 20.

Examples


# table V fagerland etal, recommended tests and confindence intervals
# for paired binomial proportions  ,stat in med 2014

bonett_price(n12 = 1, n21 = 7, N =21)

lbraglia/lbdiag documentation built on July 29, 2023, 3:35 p.m.