Performing T-Tests and Paired T-Tests with R Programming
Step-by-step tutorial on hypothesis testing, p-values, and conducting t-tests using the R language.
YouTube · R Programming 101 · 2 February 2026 Watch on YouTube
Tried this idea? Show how yours turned out.
I made thisHow to do it
What you need
- R and RStudio
- Dataset in R
- t.test() function
- Two-sample data for the T-Test
- Paired before/after measurements
- Knowledge of hypothesis testing and p-values
Step by step
- Load or create your data in R
- Check the data you will compare
- Run t.test() on the two groups for a standard T-Test
- Read the p-value in the output
- Run t.test() with paired = TRUE for paired data
- Compare each p-value against your chosen significance level
- State whether you reject or fail to reject the null hypothesis
Tips
- Decide on your hypothesis and significance level before you look at the p-value
- Use the paired version only when the same subjects are measured twice
- Beginners should read the whole output, not just the p-value
Written by Tagrazzi from the original's description and photo.
The title and summary are written by Tagrazzi; the video belongs to its creator and plays from YouTube.
Comments (0)
No comments yet. Be the first to comment.
Sign in to write a comment.