| var.test(ctest) | R Documentation |
Performs an F test to compare the variances of two samples from normal populations.
var.test(x, y, ratio = 1, alternative = "two.sided",
conf.level = 0.95)
x, y |
numeric vectors of data values. |
ratio |
the hypothesized ratio of the population variances of
x and y. |
alternative |
indicates the alternative hypothesis and must be
one of "two.sided", "greater" or "less".
You can specify just the initial letter. |
conf.level |
confidence level for the returned confidence interval. |
The null hypothesis is that the ratio of the variances of the
populations from which x and y were drawn is equal to
ratio.
"htest" containing the following
components:
statistic |
the value of the F test statistic. |
parameter |
the degrees of the freedom of the F distribtion of the test statistic. |
p.value |
the p-value of the test. |
conf.int |
a confidence interval for the ratio of the population variances. |
estimate |
the ratio of the sample variances of x and
y. |
null.value |
the ratio of population variances under the null. |
alternative |
a character string describing the alternative hypothesis. |
method |
the string "F test to compare two variances". |
data.name |
a character string giving the names of the data. |