Description Usage Arguments Value References Examples
Estimation of required sample size as given by Cundill & Alexander (2015).
1 2 3 4 5 6 7 8 9 |
mean0 |
Mean in control group |
effect |
Effect size, 1 - (μ_1 / μ_0), where
μ_0 is the mean in the control group ( |
alpha |
Type I error rate |
power |
1 - Type II error rate |
q |
Proportion of observations allocated to the control group |
link |
Link function to use. Currently implement: 'log' and 'identity' |
two_sided |
logical, if |
Returns an object of class "sample_size"
. It contains
the following components:
N |
the total sample size |
n0 |
sample size in Group 0 (control group) |
n1 |
sample size in Group 1 (treatment group) |
two_sided |
logical, |
alpha |
type I error rate used in sample size estimation |
power |
target power used in sample size estimation |
effect |
effect size used in sample size estimation |
effect_type |
short description of the type of effect size |
comment |
additional comment, if there is any |
call |
the matched call. |
Cundill, B., & Alexander, N. D. E. (2015). Sample size calculations for skewed distributions. BMC Medical Research Methodology, 15(1), 1–9. https://doi.org/10.1186/s12874-015-0023-0
1 | n_poisson(mean0 = 5, effect = 0.3)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.