Marinstatslectures

Like Us on FacebookFollow Us on TwitterSubscribe to Us on Youtube!Join Us on Google+

One-Sample t Test in R: (R Tutorial 4.1)

In this video, you will learn to conduct the one-sample t-test and confidence interval for the mean of a single variable. 

First, we will explain when it is appropriate for your data to use one sample t-test and confidence interval. Then you will see how to conduct the one-sample t-test and the confidence interval in R using the "t.test" command.

Next, you will learn to test a null and one-sided alternative hypothesis for the mean with a one-sided confidence interval in R using "t.test" command and "alt" argument and to produce a two-sided hypothesis test and confidence interval in R using the "two.sided" argument.

Later in the tutorial, we will show you how to create a 99% confidence interval in R using the "conf" argument. Finally, you will learn to use the "attributes" command to see the different attributes of an object in R and to extract specific attributes of the object using the dollar sign ($).

We recommend using the link below to download the dataset and practice on your own while watching this tutorial.

 

You can access and download the dataset that was used in this tutorial here:

Tab Delimited LungCapDataset for R TutorialsExcel LungCap Dataset for R Tutorials

 

 

Back to Series 4 R Tutorials

Next Video in Series 4 R Tutorials