计算 R 编程中 Wilcoxon Signedrank 分布上的分位数函数的值 – qsignrank()函数
R 语言中的qsignrank()
函数用于计算 Wilcoxon Signedrank 统计分布上的分位数函数(QF) 的值,用于一系列数值。
Syntax: qsignrank(x, n)
Parameters:
x: Numeric Vector
n: Sample Size
示例 1:
# R Program to compute the value of
# QF over Wilcoxon Signedrank Distribution
# Creating a sequence of x-values
x <- seq(0, 1, by = 0.1)
# Calling qsignrank() Function
y <- qsignrank(x, n = 10)
y
输出:
[1] 0 15 19 22 25 27 30 33 36 40 55
示例 2:
# R Program to compute the value of
# QF over Wilcoxon Signedrank Distribution
# Creating a sequence of x-values
x <- seq(0, 1, by = 0.02)
# Calling qsignrank() Function
y <- qsignrank(x, n = 15)
# Plot a graph
plot(y)
输出: