Challenge: Critical Value of t in R

Use what you’ve learned so far to complete the following challenge.

Critical value of t

A critical value is a cut-off value (or two cut-off values, in the case of a two-tailed test) that makes up the boundary of the rejection region(s). In other words, critical values divide the scale of our test statistics into the rejection region and the non-rejection region.

Problem statement

Find the critical value of t in R for upper and lower interval bounds. Suppose we have the following information:

  • Confidence level is 95%
  • Degree of freedom is 12

Output

#[1] -2.178813
#[1] 2.178813

Coding exercise

This problem has been designed for you to practice freely, so try to solve it on your own first. Take some time and think about the different concepts that we’ve explored in this course so far.

If you’re feeling stuck, you can always check out the solution in the next lesson.

Good luck!

Get hands-on with 1200+ tech skills courses.