goodman_cis | R Documentation |
Calculate confidence intervals for multinomial proportions using the method described by Leo Goodman in "On Simultaneous Confidence Intervals for Multinomial Proportions" in Technometrics in 1965. This function can only handle one group of categorical counts at a time, so if you want to calculate confidence intervals for multiple groups, you need to do each separately.
goodman_cis(counts, alpha = 0.2, chisq = "best", verbose = FALSE)
counts |
Numeric vector, optionally named. The counts for each of the categories being considered. If there are unequal weights, be sure to adjust these counts by proportional weight with the formula: adjusted count for a category = total observations * sum of weights of observations in the category / sum of all weights. If these values are named, those will be included in the output data frame. |
alpha |
Numeric value. Must be between 0 and 1. The alpha for the confidence calculation, e.g. for 80 percent confidence, the alpha is 0.2. Defaults to |
chisq |
Character string. This decides which chi squared quantile calculation to use. The accepted values are |
verbose |
Logical. If |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.