scimple_ci: Calculate multiple simultaneous confidence intervals using...

Description Usage Arguments Value Author(s) Examples

View source: R/scimple.r

Description

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

Usage

1
2
3
4
5
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.

Author(s)

Bob Rudis (bob@rud.is)

Examples

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

hrbrmstr/scimple documentation built on April 9, 2020, 9:57 p.m.