May 2019
Beginner to intermediate
266 pages
5h 57m
English
This is also referred to as the 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 a parametric test, and the data should be distributed normally.
R can handle the various versions of t-test using the t.test() command.
The following command is used for our Autompg dataset to check the parameters of displacement, weight, and acceleration, which are regarded as crucial elements to perform the hypothesis test error analysis:
> > t.test(Autompg$displacement, Autompg$weight)Welch Two Sample t-test data: Autompg$displacement and Autompg$weight t = -64.93, df = 409.03, p-value < 2.2e-16 alternative hypothesis: ...
Read now
Unlock full access