May 2019
Beginner to intermediate
266 pages
5h 57m
English
This is also known as Student's t-test, which is a method for comparing two samples. It can usually be implemented to determine whether the samples are proper or different. This is considered as a parametric test, and the data should be normally distributed. R can handle the various versions of the t-test using the t.test() command.
The following command is used for our AirQuality dataset to check the parameters of relative and absolute humidity:
> t.test(AirQualityUCI$RH, AirQualityUCI$AH) Welch Two Sample t-test data: AirQualityUCI$RH and AirQualityUCI$AH t = 69.62, df = 17471, p-value < 2.2e-16 alternative hypothesis: true difference in means is not equal to 0 95 percent confidence interval: 45.01707 47.62536 sample estimates: ...
Read now
Unlock full access