當前位置: 首頁>>代碼示例 >>用法及示例精選 >>正文


R語言 qwilcox()用法及代碼示例


qwilcox()R 語言中的函數用於計算數值序列上 Wilcoxonrank 和統計分布的分位數函數 (QF) 的值。

用法: qwilcox(x, m, n)

參數:
x:數字向量
m:更大的樣本量
n:較小的樣本量

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

輸出:

相關用法


注:本文由純淨天空篩選整理自nidhi_biet大神的英文原創作品 Compute the value of Quantile Function over Wilcoxon Rank Sum Distribution in R Programming – qwilcox() Function。非經特殊聲明,原始代碼版權歸原作者所有,本譯文未經允許或授權,請勿轉載或複製。