power_ttest | R Documentation |
Power calculation of a one-sided two-sample t-test from the non-central t-distribution. The variances are equal between the groups, the sample sizes must not be equal.
power_ttest(variance, n, alloc, delta, sig_level)
variance |
assumed within-group variance |
n |
total sample size |
alloc |
numeric vector of sample size proportion within group |
delta |
assumed treatment effect |
sig_level |
level of significance |
power of the one-sided two-sample t-test
power_ttest(variance = 1, alloc = c(0.5, 0.5), delta = 0.5, sig_level = 0.025, n = 126)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.