Compute the value of Quantile Function over Studentized Distribution in R Programming – qtukey() Function

qtukey() function in R Language is used to compute the value of Studentized Range Quantile Function over a sequence of Numeric Values.

Syntax: qtukey(x, nmeans, df)

Parameters:
x: Numeric Vector
nmeans: Number of means
df: Degree of Freedom

Example 1:

filter_none

edit
close

play_arrow

link
brightness_4
code

# R Program to compute the value of
# Quantile Function Studentized Range
  
# Creating a sequence of Numeric values
x <- seq(0, 1, by = 0.1)
  
# Calling qtukey() Function
y <- qtukey(x, nmeans = 7, df = 5)
y

chevron_right


Output:

 [1] 0.000000 1.574255 1.933986 2.237255 2.531898 2.842588 3.193850 3.623645
 [9] 4.214094 5.238196      Inf

Example 2:

filter_none

edit
close

play_arrow

link
brightness_4
code

# R Program to compute the value of
# Quantile Function Studentized Range
  
# Creating a sequence of Numeric values
x <- seq(0, 1, by = 0.02)
  
# Calling qtukey() Function
y <- qtukey(x, nmeans = 7, df = 5)
  
# Plot a graph
plot(y)

chevron_right


Output:

My Personal Notes arrow_drop_up

Recommended Posts:


Check out this Author's contributed articles.

If you like GeeksforGeeks and would like to contribute, you can also write an article using contribute.geeksforgeeks.org or mail your article to contribute@geeksforgeeks.org. See your article appearing on the GeeksforGeeks main page and help other Geeks.

Please Improve this article if you find anything incorrect by clicking on the "Improve Article" button below.


Article Tags :

Be the First to upvote.


Please write to us at contribute@geeksforgeeks.org to report any issue with the above content.