Return simultaneous confidence intervals for multinomial proportions based on selected methods.

scimple_ci(
  inpmat,
  alpha,
  methods = c("fs", "goodman", "qh", "sg", "wald", "waldcc", "wilson")
)

Arguments

inpmat

the cell counts of given contingency tables corresponding to categorical data

alpha

a number in [0..1] to get the upper 100(1-alpha) percentage point of the chi square distribution

methods

character vector of one or more methods to run over the input parameters

Value

tibble with original and adjusted limits of multinomial proportions together with product of length of k intervals as volume of simultaneous confidence intervals. The inputmat and alpha values are also returned in the tibble.

Examples

y <- c(44,55,43,32,67,78)
z <- 0.05
scimple_ci(y, z)
scimple_ci(y, z, c("goodman", "waldcc", "wilson"))