Description Usage Arguments Value Author(s) Examples
Given a proportion and its sampling variance, calc_n_dirichlet
calculates the implied sample size of the corresponding Dirichlet distribution. That is, if a simplex is distributed Dirichlet(p * N) and one element p equals prop
and has sampling variance prop_variance
, calc_n_dirichlet
calculates the implied value of N using the formula (prop * (1 - prop) / prop_variance) - 1
.
1 | calc_n_dirichlet(prop, prop_variance)
|
prop |
stipulated proportion |
prop_variance |
stipulated sampling variance |
The implied “sample size” of the Dirichlet distribution.
Devin Caughey
1 2 | ## proportion of 0.5 with standard error of 0.01
calc_n_dirichlet(0.5, 0.01 ^ 2)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.