Compute the value of CDF over Studentized Range Distribution in R Programming – ptukey() Function
ptukey() function in R Language is used to compute the value of Cumulative Distribution Function(CDF) over Studentized Range for a sequence of numeric values.
Syntax: ptukey(x, nmeans, df)
Parameters:
x: Numeric Vector
nmeans: Number of means
df: Degree of Freedom
Example 1:
# R Program to compute the value of# CDF for Studentized Range # Creating a sequence of Numeric valuesx <- seq(1, 10, by = 1) # Calling ptukey() Functiony <- ptukey(x, nmeans = 7, df = 5)y |
Output:
[1] 0.01416051 0.22099429 0.54676395 0.76823006 0.88284988 0.93871676 [7] 0.96637587 0.98063547 0.98833593 0.99268670
Example 2:
# R Program to compute the value of# CDF for Studentized Range # Creating a sequence of Numeric valuesx <- seq(1, 10, by = 0.2) # Calling ptukey() Functiony <- ptukey(x, nmeans = 8, df = 7) # Plot a graphplot(y) |
Output:


