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:
x < - seq( 1 , 10 , by = 1 )
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:
x < - seq( 1 , 50 , by = 1 )
y < - pwilcox(x, m = 40 , n = 20 )
plot(y)
|
Output:
Share your thoughts in the comments
Please Login to comment...