Description Usage Arguments Value Examples
Hypothesis Test for the Difference of Two Population Means
1 2 | mean2test.plot(xb1, xb2, s1, s2, n1, n2, d0 = 0, prng, side = "two",
pvar = "equal", mt, dig = 4, xlab)
|
xb1 |
Sample mean of population1 (or sample data) |
xb2 |
Sample mean of population2 (or sample data) |
s1 |
Standard deviation of population1 (optional for unknown variance) |
s2 |
Standard deviation of population2 (optional for unknown variance) |
n1 |
Sample size of population1 (unnecessary if data are given) |
n2 |
Sample size of population2 (unnecessary if data are given) |
d0 |
Difference of two population means under the null hypothesis, Default: 0 |
prng |
Range of x-axis, Default: [d0-4se, d0+4se] |
side |
Type of the alternative hypothesis, Default: 'two' |
pvar |
Status of variance (one of "known", "equal", "unequal"), Default: 'equal' |
mt |
Graph title |
dig |
Number of digits below the decimal point, Default: 4 |
xlab |
Label of x-axis |
None.
1 2 3 4 5 6 7 | mean2test.plot(xb1=198.5, xb2=201.3, s1=5, s2=5, n1=25, n2=34, pvar="known")
mean2test.plot(xb1=198.5, xb2=201.3, s1=4.8, s2=5.1, n1=25, n2=34, pvar="equal")
mean2test.plot(xb1=198.5, xb2=201.3, s1=2.8, s2=5.5, n1=25, n2=34, pvar="unequal")
x = rnorm(20, 199, 2)
y = rnorm(25, 200, 2)
mean2test.plot(x, y, pvar="equal")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.