Description Usage Arguments Value References Examples
computes power function for two-sample t-testfor the alternative mu1 > mu2. This test is discussed in Example 4.6.2, page 278. Power functions for two-sample t-tests are discussed in Example 8.3.3 on page 493.
1 | tpower2g2(n, m, Delta, sig, alpha)
|
n |
a number, a sample size of first sample related to mu1 |
m |
a number, a sample size of second sample related to mu2 |
Delta |
a number, Delta = mu1 - mu2 is the argument for the power function. |
sig |
a number, common standard deviation of the 2 populations |
alpha |
a number, the significance level of the test |
a number, gamma the power of the t-test to dectect delta
Hogg, R. McKean, J. Craig, A. (2018) Introduction to Mathematical Statistics, 8th Ed. Boston: Pearson.
1 2 3 4 5 6 | n <- 20
m <- 15
Delta <- 5
sig <- 10
alpha <- 0.05
tpower2g2(n, m, Delta, sig, alpha)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.