View source: R/Method-internal-power.r
ttest_power | R Documentation |
This is a function that performs a power analysis of the two-sided t-test. Given the effect size, significance level, and power, the required sample size can be calculated (although the control or treatment sample size must be given). Also, given the sample size of the two groups, effect size, and significance level, the power can be calculated. Given the sample size of two groups, significance level, and power of the two groups, the effect size can be calculated. Given the sample size of two groups, effect size, and power of the two groups, the significance level can be calculated.
ttest_power(n0, n1, d, alpha, power)
n0 |
numeric. Number of observations in the control. |
n1 |
numeric. Number of observations in the treatment. |
d |
numeric. Effect size. |
alpha |
numeric. Statistically significance (probability of Type I error). |
power |
numeric. Power (1 - probability of Type II error). |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.