在 R 编程中计算分位数函数在学生化分布上的值 – qtukey()函数
R 语言中的qtukey()
函数用于在一系列数值上计算学生化范围分位数函数的值。
Syntax: qtukey(x, nmeans, df)
Parameters:
x: Numeric Vector
nmeans: Number of means
df: Degree of Freedom
示例 1:
# 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
输出:
[1] 0.000000 1.574255 1.933986 2.237255 2.531898 2.842588 3.193850 3.623645
[9] 4.214094 5.238196 Inf
示例 2:
# 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)
输出: