![]() |
VOOZH | about |
var.test() Method in R Programming language perform the f-test between two normal populations with some hypothesis that variances of two populations are equal in R programming.
Syntax: var.test()
Return: Returns the F-Test score for some hypothesis.
Example 1:
Output:
F test to compare two variances
data: x and y
F = 1.0779, num df = 49, denom df = 49, p-value = 0.794
alternative hypothesis: true ratio of variances is not equal to 1
95 percent confidence interval:
0.6116778 1.8994484
sample estimates:
ratio of variances
1.077892
Example 2:
Output:
F test to compare two variances
data: x and y
F = 2.382, num df = 49, denom df = 49, p-value = 0.002911
alternative hypothesis: true ratio of variances is not equal to 1
95 percent confidence interval:
1.351715 4.197491
sample estimates:
ratio of variances
2.381976