Skip to main content

"lower.tail" confusion in R.

 "lower.tail" in R  I usually get confused on how to use the argument in "pt" function and similar function. Here I will focus on t-distribution. I will utilize Minitab for graphical presentation. A:- lower.tail is FALSE       In R The code is  > pt(q = -2.262, df = 9, lower.tail = FALSE) The output  [1] 0.9749936      In Minitab This is shown as in the graph from Minitab. So when FASLE is chosen, the calculation will give the area after the critical value. B:- "lower.tail" is TRUE      In R  the code is  pt(q = -2.262, df = 9, lower.tail = TRUE) the output is  [1] 0.02500642      In Minitab When TRUE is used, it orders R to compute the area before the critical value.

"lower.tail" confusion in R.

 "lower.tail" in R 

I usually get confused on how to use the argument in "pt" function and similar function. Here I will focus on t-distribution. I will utilize Minitab for graphical presentation.

A:- lower.tail is FALSE 

    In R

The code is 
> pt(q = -2.262, df = 9, lower.tail = FALSE)
The output 
[1] 0.9749936

    In Minitab

This is shown as in the graph from Minitab.



So when FASLE is chosen, the calculation will give the area after the critical value.

B:- "lower.tail" is TRUE

    In R 

the code is 
 pt(q = -2.262, df = 9, lower.tail = TRUE)
the output is 
[1] 0.02500642

    In Minitab


When TRUE is used, it orders R to compute the area before the critical value.

Comments