# Compute the value of PDF over Wilcoxon Rank Sum Distribution in R Programming – dwilcox() Function

`dwilcox()` function in R Language is used to compute the value of Probability Density Function(PDF) for Wilcoxonrank Sum Statistic Distribution over a sequence of Numeric Values.

Syntax: dwilcox(x, m, n)

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

Example 1:

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

Output:

``` [1] 0.0003330003 0.0006660007 0.0009990010 0.0016650017 0.0023310023
[6] 0.0033300033 0.0043290043 0.0059940060 0.0076590077 0.0099900100
```

Example 2:

 `# R Program to compute the value of ` `# PDF over Wilcoxonrank Sum Distribution ` ` `  `# Creating a sequence of x-values ` `x <``-` `seq(``1``, ``50``, by ``=` `1``) ` ` `  `# Calling dwilcox() Function ` `y <``-` `dwilcox(x, m ``=` `30``, n ``=` `10``) ` ` `  `# Plot a graph ` `plot(y) `

Output:

My Personal Notes arrow_drop_up

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.