Compute the value of PDF over Wilcoxon Rank Sum Distribution in R Programming – dwilcox() Function
Last Updated :
25 Jun, 2020
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:
x < - seq( 1 , 10 , by = 1 )
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:
x < - seq( 1 , 50 , by = 1 )
y < - dwilcox(x, m = 30 , n = 10 )
plot(y)
|
Output:
Share your thoughts in the comments
Please Login to comment...