Вычислите значение PDF по распределению Wilcoxon Signedrank в программировании на R - функция dsignrank ()
Опубликовано: 17 Февраля, 2022
dsignrank()
function in R Language is used to compute the value of Probability Density Function(PDF) over Wilcoxon Signedrank Statistic Distribution for a sequence of Numeric values.
Syntax: dsignrank(x, n)
Parameters:
x: Numeric Vector
n: Sample Size
Example 1:
# R Program to compute the value of # PDF over Wilcoxon Signedrank Distribution # Creating a sequence of x-values x < - seq( 0 , 20 , by = 1 ) # Calling dsignrank() Function y < - dsignrank(x, n = 10 ) y |
Выход:
[1] 0,0009765625 0,0009765625 0,0009765625 0,0019531250 0,0019531250 [6] 0,0029296875 0,0039062500 0,0048828125 0,0058593750 0,0078125000 [11] 0,0097656250 0,0107421875 0,0126953125 0,0146484375 0,0166015625 [16] 0,0195312500 0,0214843750 0,0234375000 0,0263671875 0,0283203125 [21] 0,0302734375
Example 2:
# R Program to compute the value of # PDF over Wilcoxon Signedrank Distribution # Creating a sequence of x-values x < - seq( 1 , 100 , by = 1 ) # Calling dsignrank() Function y < - dsignrank(x, n = 15 ) # Plot a graph plot(y) |
Выход: