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

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:

filter_none

edit
close

play_arrow

link
brightness_4
code

# 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

chevron_right


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:

filter_none

edit
close

play_arrow

link
brightness_4
code

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

chevron_right


Output:

My Personal Notes arrow_drop_up

Recommended Posts:


Check out this Author's contributed articles.

If you like GeeksforGeeks and would like to contribute, you can also write an article using contribute.geeksforgeeks.org or mail your article to contribute@geeksforgeeks.org. See your article appearing on the GeeksforGeeks main page and help other Geeks.

Please Improve this article if you find anything incorrect by clicking on the "Improve Article" button below.


Article Tags :

Be the First to upvote.


Please write to us at contribute@geeksforgeeks.org to report any issue with the above content.