friedman.test(stats)
friedman.test()所属R语言包:stats
Friedman Rank Sum Test
弗里德曼等级和检验
译者:生物统计家园网 机器人LoveR
描述----------Description----------
Performs a Friedman rank sum test with unreplicated blocked data.
执行弗里德曼封锁与非复制数据的秩和检验。
用法----------Usage----------
friedman.test(y, ...)
## Default S3 method:[默认方法]
friedman.test(y, groups, blocks, ...)
## S3 method for class 'formula'[类formula的方法]
friedman.test(formula, data, subset, na.action, ...)
参数----------Arguments----------
参数:y
either a numeric vector of data values, or a data matrix.
无论是数据值的数字向量,或数据矩阵。
参数:groups
a vector giving the group for the corresponding elements of y if this is a vector; ignored if y is a matrix. If not a factor object, it is coerced to one.
一个向量组给予相应的元素y如果这是一个向量;忽略y如果是一个矩阵。如果对象不是一个因素,它是被迫的一个。
参数:blocks
a vector giving the block for the corresponding elements of y if this is a vector; ignored if y is a matrix. If not a factor object, it is coerced to one.
矢量给予相应的元素块y如果这是一个向量;忽略y如果是一个矩阵。如果对象不是一个因素,它是被迫的一个。
参数:formula
a formula of the form a ~ b | c, where a, b and c give the data values and corresponding groups and blocks, respectively.
一个公式的形式a ~ b | c,其中a,b和c提供的数据值和相应的组块,分别。
参数:data
an optional matrix or data frame (or similar: see model.frame) containing the variables in the formula formula. By default the variables are taken from environment(formula).
一个可选的矩阵或数据框(或类似:看到model.frame)包含公式formula的变量。默认情况下采取的变量从environment(formula)。
参数:subset
an optional vector specifying a subset of observations to be used.
一个可选的向量,指定要使用的意见的一个子集。
参数:na.action
a function which indicates what should happen when the data contain NAs. Defaults to getOption("na.action").
一个函数,它表示数据时,包含NA的,应该发生什么。 getOption("na.action")默认。
参数:...
further arguments to be passed to or from methods.
进一步的参数被传递到或从方法。
Details
详情----------Details----------
friedman.test can be used for analyzing unreplicated complete block designs (i.e., there is exactly one observation in y for each combination of levels of groups and blocks) where the normality assumption may be violated.
friedman.test可以用来分析非复制完整的块设计(即,恰好有一个观察ygroups和blocks水平的组合)在常态假设每个可能受到侵犯。
The null hypothesis is that apart from an effect of blocks, the location parameter of y is the same in each of the groups.
零假设是,除了从blocks,y位置参数是一样的groups的影响。
If y is a matrix, groups and blocks are obtained from the column and row indices, respectively. NA's are not allowed in groups or blocks; if y contains NA's, corresponding blocks are removed.
y如果是一个矩阵,groups和blocks列和行指数,分别获得。 NA是不允许groups或blocks如果y包含NA,相应的块被删除。
值----------Value----------
A list with class "htest" containing the following components:
一类"htest"包含以下组件的列表:
参数:statistic
the value of Friedman's chi-squared statistic.
弗里德曼的卡方统计值。
参数:parameter
the degrees of freedom of the approximate chi-squared distribution of the test statistic.
自由的近似卡方检验统计量的分布度。
参数:p.value
the p-value of the test.
p值的测试。
参数:method
the character string "Friedman rank sum test".
字符串"Friedman rank sum test"。
参数:data.name
a character string giving the names of the data.
字符串提供的数据的名称。
参考文献----------References----------
Nonparametric Statistical Methods. New York: John Wiley & Sons. Pages 139–146.
参见----------See Also----------
quade.test.
quade.test。
举例----------Examples----------
## Hollander & Wolfe (1973), p. 140ff.[#霍兰德和沃尔夫(1973),P。 140ff。]
## Comparison of three methods ("round out", "narrow angle", and[#比较三种方法(“圆”,“窄角”,]
## "wide angle") for rounding first base. For each of 18 players[#“广角”)四舍五入第一基地。对于每个18岁以下球员]
## and the three method, the average time of two runs from a point on[#三种方法,从一个点上的平均时间两分]
## the first base line 35ft from home plate to a point 15ft short of[#第一底线从本垒点15英尺短的35英尺]
## second base is recorded.[记录#二垒。]
RoundingTimes <-
matrix(c(5.40, 5.50, 5.55,
5.85, 5.70, 5.75,
5.20, 5.60, 5.50,
5.55, 5.50, 5.40,
5.90, 5.85, 5.70,
5.45, 5.55, 5.60,
5.40, 5.40, 5.35,
5.45, 5.50, 5.35,
5.25, 5.15, 5.00,
5.85, 5.80, 5.70,
5.25, 5.20, 5.10,
5.65, 5.55, 5.45,
5.60, 5.35, 5.45,
5.05, 5.00, 4.95,
5.50, 5.50, 5.40,
5.45, 5.55, 5.50,
5.55, 5.55, 5.35,
5.45, 5.50, 5.55,
5.50, 5.45, 5.25,
5.65, 5.60, 5.40,
5.70, 5.65, 5.55,
6.30, 6.30, 6.25),
nrow = 22,
byrow = TRUE,
dimnames = list(1 : 22,
c("Round Out", "Narrow Angle", "Wide Angle")))
friedman.test(RoundingTimes)
## => strong evidence against the null that the methods are equivalent[#=>有力的证据,对空,该方法是等效的]
## with respect to speed[#方面加快]
wb <- aggregate(warpbreaks$breaks,
by = list(w = warpbreaks$wool,
t = warpbreaks$tension),
FUN = mean)
wb
friedman.test(wb$x, wb$w, wb$t)
friedman.test(x ~ w | t, data = wb)
转载请注明:出自 生物统计家园网(http://www.biostatistic.net)。
注:
注1:为了方便大家学习,本文档为生物统计家园网机器人LoveR翻译而成,仅供个人R语言学习参考使用,生物统计家园保留版权。
注2:由于是机器人自动翻译,难免有不准确之处,使用时仔细对照中、英文内容进行反复理解,可以帮助R语言的学习。
注3:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
|