Skip to content
Related Articles

Related Articles

Improve Article

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

  • Last Updated : 25 Jun, 2020

pwilcox() function in R Language is used to compute the value of Cumulative Density Function(CDF) for Wilcoxonrank Sum Statistic Distribution over a sequence of Numeric Values.

Syntax: pwilcox(x, m, n)

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

Example 1:




# R Program to compute the value of
# CDF over Wilcoxonrank Sum Distribution
  
# Creating a sequence of x-values
x <- seq(1, 10, by = 1)
  
# Calling pwilcox() Function
y <- pwilcox(x, m = 10, n = 5)
y

Output:

 [1] 0.0006660007 0.0013320013 0.0023310023 0.0039960040 0.0063270063
 [6] 0.0096570097 0.0139860140 0.0199800200 0.0276390276 0.0376290376

Example 2:




# R Program to compute the value of
# CDF over Wilcoxonrank Sum Distribution
  
# Creating a sequence of x-values
x <- seq(1, 50, by = 1)
  
# Calling pwilcox() Function
y <- pwilcox(x, m = 40, n = 20)
  
# Plot a graph
plot(y)

Output:

My Personal Notes arrow_drop_up
Recommended Articles
Page :