Compute the value of CDF over Wilcoxon Signedrank Distribution in R Programming – psignrank() Function
Last Updated :
25 Jun, 2020
psignrank()
function in R Language is used to compute the value of Cumulative Density Function(CDF) over Wilcoxon Signedrank Statistic Distribution for a sequence of Numeric values.
Syntax: psignrank(x, n)
Parameters:
x: Numeric Vector
n: Sample Size
Example 1:
x < - seq( 0 , 20 , by = 1 )
y < - psignrank(x, n = 10 )
y
|
Output:
[1] 0.0009765625 0.0019531250 0.0029296875 0.0048828125 0.0068359375
[6] 0.0097656250 0.0136718750 0.0185546875 0.0244140625 0.0322265625
[11] 0.0419921875 0.0527343750 0.0654296875 0.0800781250 0.0966796875
[16] 0.1162109375 0.1376953125 0.1611328125 0.1875000000 0.2158203125
[21] 0.2460937500
Example 2:
x < - seq( 1 , 100 , by = 1 )
y < - psignrank(x, n = 15 )
plot(y)
|
Output:
Like Article
Suggest improvement
Share your thoughts in the comments
Please Login to comment...