Вычислить значение PDF по распределению суммы рангов Уилкоксона в программировании на R - функция dwilcox ()
Опубликовано: 17 Февраля, 2022
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 |
Выход:
[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) |
Выход: