diffConf: Confidence Interval for the True Difference Between Two...

Description Usage Arguments Value Examples

View source: R/diffConf.R

Description

Takes in a one way table and estimates the difference between the true proportions of 2 categories. Uses Bonferroni correction.

Usage

1
diffConf(tab, a, b, FWER = 0.05, ntest = (length(tab) * (length(tab) - 1))/2)

Arguments

tab

, a one way table

a

, index for the fist estimate

b

, index for the second estimate (greater than a)

FWER

, family wise error rate

ntest

, number of multiple comparisons (default value assumes all pairwise comparisons checked)

Value

List of estimate of the difference, lower bound of confidence interval, and upperbound of confidence interval

Examples

1
tab=c("x"=1, "y"=2, "z"=3); a=1; b=3; diffConf(tab, a, b)

s-huebler/regsisF20 documentation built on Oct. 15, 2020, 10:42 p.m.