R语言 计算Studentized分布的量化函数值 – qtukey()函数

R语言 计算Studentized分布的量化函数值 – qtukey()函数

R语言中的 qtukey() 函数用于计算一连串数值上的Studentized Range Quantile函数的值。

语法: qtukey(x, nmeans, df)

参数:

x: 数值向量

nmeans: 均值的数量

df: 自由度

例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)

输出:

在R语言编程中计算Studentized分布的量化函数值 - qtukey函数

Python教程

Java教程

Web教程

数据库教程

图形图像教程

大数据教程

开发工具教程

计算机教程