mean2.ci | R Documentation |
Confidence Interval for the Difference of Two Population Means
mean2.ci(xb1, xb2, s1, s2, n1, n2, pvar = "equal", alp = 0.05, dig = 4)
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) |
pvar |
Status of variance (one of "known", "equal", "unequal"), Default: 'equal' |
alp |
Level of significance, Default: 0.05 |
dig |
Number of digits below the decimal point, Default: 4 |
None.
mean2.ci(xb1=198.5, xb2=201.3, s1=5, s2=5, n1=25, n2=34, pvar="known") mean2.ci(xb1=198.5, xb2=201.3, s1=4.8, s2=5.1, n1=25, n2=34, pvar="equal") mean2.ci(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) mean2.ci(x, y, pvar="equal")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.