R语言威尔科克森(Wilcoxon)分布 |
您所在的位置:网站首页 › wilcoxon秩和检验r语言 › R语言威尔科克森(Wilcoxon)分布 |
这个分布的获得方法如下。让x和y是两个大小为m和n的随机独立样本,那么Wilcoxon秩和统计是y[j]不大于x[i]的所有对(x[i], y[j])的数量。这个统计量的取值在0和m*n之间,其平均值和方差分别为m*n/2和m*n*(m+n+1)/12。如果前三个参数中的任何一个是向量,则使用循环规则对这三个参数的所有组合进行计算,直至最长的向量的长度。 Distribution of the Wilcoxon Rank Sum Statistic DescriptionDensity, distribution function, quantile function and random generation for the distribution of the Wilcoxon rank sum statistic obtained from samples with size m and n, respectively. Usage dwilcox(x, m, n, log = FALSE) pwilcox(q, m, n, lower.tail = TRUE, log.p = FALSE) qwilcox(p, m, n, lower.tail = TRUE, log.p = FALSE) rwilcox(nn, m, n) Arguments x, qvector of quantiles. pvector of probabilities. nnnumber of observations. If length(nn) > 1, the length is taken to be the number required. m, nnumbers of observations in the first and second sample, respectively. Can be vectors of positive integers. log, log.plogical; if TRUE, probabilities p are given as log(p). lower.taillogical; if TRUE (default), probabilities are P[X ≤ x], otherwise, P[X > x]. ####Wilcoxon分布 # 1.Wilcoxon分布中抽样函数rwilcox nn |
今日新闻 |
推荐新闻 |
CopyRight 2018-2019 办公设备维修网 版权所有 豫ICP备15022753号-3 |