Open In App

Compute the value of Quantile Function over Wilcoxon Rank Sum Distribution in R Programming – qwilcox() Function

Last Updated : 25 Jun, 2020
Improve
Improve
Like Article
Like
Save
Share
Report

qwilcox() function in R Language is used to compute the value of Quantile Function(QF) for Wilcoxonrank Sum Statistic Distribution over a sequence of Numeric Values.

Syntax: qwilcox(x, m, n)

Parameters:
x: Numeric Vector
m: Larger sample size
n: Smaller sample size

Example 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


Output:

 [1]  0 14 18 21 23 25 27 29 32 36 50

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


Output:


Like Article
Suggest improvement
Previous
Next
Share your thoughts in the comments

Similar Reads