Which function in r language is used to find out whether the means of 2 groups are equal to each other or not?
Answer Posted / Reetika Yadav
To compare the means of two groups, you can use a t-test. In R, the `t.test()` function performs a two-sample t-test. For example, if you have two vectors `x` and `y`, you can use `t.test(x, y)` to test whether their means are significantly different.
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers