Open In App

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

Last Updated : 25 Jun, 2020
Comments
Improve
Suggest changes
Like Article
Like
Report
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: Python3 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: Python3 1==
# 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:

Next Article
Article Tags :

Similar Reads