One-sample t-test
In the last exercise, you used the t.test() function to derive a confidence interval. In this exercise, you will use this function to test if the population's mean amounts to a specific value.
You can get asked about the one-sample t-test if your future role involves testing a sample against a specific benchmark.
In this exercise, you will once again work with the sleep dataset from the datasets package.
The dataset contains the following variables:
group- indicates which drug has been given to a patient (either1or2),extra- an increase in hours of sleep compared to control.
You will perform the one-sample t-test twice - once for the first group and once for the second group.
यह अभ्यास पाठ्यक्रम का हिस्सा है
Practicing Statistics Interview Questions in R
इंटरैक्टिव व्यावहारिक अभ्यास
हमारे इंटरैक्टिव अभ्यासों में से किसी एक के साथ सिद्धांत को व्यवहार में बदलें
अभ्यास शुरू करें