计算 R 编程中 Wilcoxon 秩和分布上的分位数函数的值 – qwilcox()函数
R 语言中的qwilcox()
函数用于计算一系列数值上的 Wilcoxonrank Sum Statistic Distribution 的分位数函数(QF) 的值。
Syntax: qwilcox(x, m, n)
Parameters:
x: Numeric Vector
m: Larger sample size
n: Smaller sample size
示例 1:
# R Program to compute the value of
# QF over Wilcoxonrank Sum Distribution
# Creating a sequence of x-values
x <- seq(0, 1, by = 0.1)
# Calling qwilcox() Function
y <- qwilcox(x, m = 10, n = 5)
y
输出:
[1] 0 14 18 21 23 25 27 29 32 36 50
示例 2:
# R Program to compute the value of
# QF over Wilcoxonrank Sum Distribution
# Creating a sequence of x-values
x <- seq(0, 1, by = 0.02)
# Calling qwilcox() Function
y <- qwilcox(x, m = 20, n = 5)
# Plot a graph
plot(y)
输出: