SignRank(stats)
SignRank()所属R语言包:stats
Distribution of the Wilcoxon Signed Rank Statistic
魏氏分布符号秩统计
译者:生物统计家园网 机器人LoveR
描述----------Description----------
Density, distribution function, quantile function and random generation for the distribution of the Wilcoxon Signed Rank statistic obtained from a sample with size n.
密度,分布函数,分位数秩的分布函数和随机生成的签名大小n从样品中获得的排名统计。
用法----------Usage----------
dsignrank(x, n, log = FALSE)
psignrank(q, n, lower.tail = TRUE, log.p = FALSE)
qsignrank(p, n, lower.tail = TRUE, log.p = FALSE)
rsignrank(nn, n)
参数----------Arguments----------
参数:x,q
vector of quantiles.
位数的向量。
参数:p
vector of probabilities.
概率向量。
参数:nn
number of observations. If length(nn) > 1, the length is taken to be the number required.
观测数。如果length(nn) > 1,长度是所需的数量。
参数:n
number(s) of observations in the sample(s). A positive integer, or a vector of such integers.
观测样本中(S)(S)。一个正整数,或这样的整数向量。
参数:log, log.p
logical; if TRUE, probabilities p are given as log(p).
逻辑;如果为TRUE,概率P日志(P)。
参数:lower.tail
logical; if TRUE (default), probabilities are P[X ≤ x], otherwise, P[X > x].
逻辑;如果是TRUE(默认),概率P[X ≤ x],否则,“P[X > x]。
Details
详情----------Details----------
This distribution is obtained as follows. Let x be a sample of size n from a continuous distribution symmetric about the origin. Then the Wilcoxon signed rank statistic is the sum of the ranks of the absolute values x[i] for which x[i] is positive. This statistic takes values between 0 and n(n+1)/2, and its mean and variance are n(n+1)/4 and n(n+1)(2n+1)/24, respectively.
这种分布规律如下。让xn连续分布对称的起源是一个大小的样本。然后Wilcoxon符号秩统计x[i]x[i]是积极的总和绝对值的行列。这一统计数字0和n(n+1)/2之间的值,其均值和方差n(n+1)/4和n(n+1)(2n+1)/24,分别。
If either of the first two arguments is a vector, the recycling rule is used to do the calculations for all combinations of the two up to the length of the longer vector.
如果前两个参数是一个向量,回收规则是用来做两到较长的向量长度的所有组合计算。
值----------Value----------
dsignrank gives the density, psignrank gives the distribution function, qsignrank gives the quantile function, and rsignrank generates random deviates.
dsignrank给人的密度,psignrank给出了分布函数,qsignrank给人的分量功能,rsignrank产生随机的偏离。
作者(S)----------Author(s)----------
Kurt Hornik; efficiency improvement by Ivo Ugrina.
参见----------See Also----------
wilcox.test to calculate the statistic from data, find p values and so on.
wilcox.test计算从数据统计,发现p值等。
Distributions for standard distributions, including dwilcox for the distribution of two-sample Wilcoxon rank sum statistic.
分布为标准的分布,包括dwilcox双样本的Wilcoxon秩和统计分布。
举例----------Examples----------
require(graphics)
par(mfrow=c(2,2))
for(n in c(4:5,10,40)) {
x <- seq(0, n*(n+1)/2, length=501)
plot(x, dsignrank(x,n=n), type='l', main=paste("dsignrank(x,n=",n,")"))
}
转载请注明:出自 生物统计家园网(http://www.biostatistic.net)。
注:
注1:为了方便大家学习,本文档为生物统计家园网机器人LoveR翻译而成,仅供个人R语言学习参考使用,生物统计家园保留版权。
注2:由于是机器人自动翻译,难免有不准确之处,使用时仔细对照中、英文内容进行反复理解,可以帮助R语言的学习。
注3:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
|