sampsize_multinomial: Compute the approximate worst-case sample size for a vector...

View source: R/numericFunctions.R

sampsize_multinomialR Documentation

Compute the approximate worst-case sample size for a vector of multinomial proportions

Description

Compute the approximate worst-case sample size for a vector of multinomial proportions

Usage

sampsize_multinomial(m, relmoe, conf = 0.95)

Arguments

m

The (integer) number of elements (at least two) in the vector of equal proportions.

relmoe

Relative margin of error (relative half-width of the confidence interval), expressed as a proportion. A value of 0.25 specifies margin of error equal to 0.25 times the value of the (equal) proportions.

conf

Confidence level. The default is 0.95.

Value

A list containing the following elements:

⁠sample_size⁠

The required sample size.

⁠target_proportions⁠

The anticipated vector of multinomially distributed outcomes.

⁠moe⁠

The absolute margins of error for estimation of ⁠target_proportions⁠.

⁠Call⁠

The function call.

Author(s)

Steve Gutreuter

References

Thompson SK. Sample size for estimating multinomial proportions. The American Statistician 1987; 41(1):42-46.


sgutreuter/SGmisc documentation built on Aug. 25, 2024, 7:21 p.m.