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:
x < - seq( 1 , 10 , by = 1 )
y < - 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:
x < - seq( 1 , 10 , by = 0.2 )
y < - ptukey(x, nmeans = 8 , df = 7 )
plot(y)
|
Output:
