Skip to content

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

0

Report / takedown request

Your report is sent to our team and reviewed.

Tried this idea? Show how yours turned out.

I made this

How 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

  1. Load or create your data in R
  2. Check the data you will compare
  3. Run t.test() on the two groups for a standard T-Test
  4. Read the p-value in the output
  5. Run t.test() with paired = TRUE for paired data
  6. Compare each p-value against your chosen significance level
  7. 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.