Use the 2-sample t-test to compare the averages between two groups and determine if there is a significant difference between them or if the observed difference is due instead to random chance.
obtain target power. ! power.t.test(n = NULL, delta = NULL, sig.level = 0.05, power = NULL, type = c(“two.sample”, “one.sample”, “paired”), alternative = c(“two.sided","one.sided"), strict = FALSE) ! Exactly one of the parameters n, delta, power, sd, and sig.level must be passed as NULL, and that parameter is determined from the others. Notice that the last two have non-NULL defaults so NULL must be explicitly passed if you want to compute them.
delta = 0.01) ! Two-sample t test power calculation ! n = 50 delta = 0.01 sd = 1 sig.level = 0.05 power = 0.02803757 alternative = two.sided ! NOTE: n is number in *each* group
0.01, sd = 0.01) ! Two-sample t test power calculation ! n = 50 delta = 0.01 sd = 0.01 sig.level = 0.05 power = 0.9986074 alternative = two.sided ! NOTE: n is number in *each* group
= 0.01) ! Two-sample t test power calculation ! n = 50 delta = 0.01 sd = 0.01 sig.level = 0.05 power = 0.9986074 alternative = two.sided ! NOTE: n is number in *each* group
0.01, sd = 0.02) ! Two-sample t test power calculation ! n = 50 delta = 0.01 sd = 0.02 sig.level = 0.05 power = 0.6968888 alternative = two.sided ! NOTE: n is number in *each* group
sd = 0.02) ! Two-sample t test power calculation ! n = 104.928 delta = 0.01 sd = 0.02 sig.level = 0.05 power = 0.95 alternative = two.sided ! NOTE: n is number in *each* group