View source: R/numericFunctions.R
sampsize_multinomial | R Documentation |
Compute the approximate worst-case sample size for a vector of multinomial proportions
sampsize_multinomial(m, relmoe, conf = 0.95)
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. |
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.
Steve Gutreuter
Thompson SK. Sample size for estimating multinomial proportions. The American Statistician 1987; 41(1):42-46.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.