perm.anova(RVAideMemoire)
perm.anova()所属R语言包:RVAideMemoire
Permutational Analysis of Variance
Permutational方差分析
译者:生物统计家园网 机器人LoveR
描述----------Description----------
Perform a permutational analysis of variance for 1 to 3 factors. For 2 and 3 factors, experiment design must be balanced. For 2 factors, the factors can be crossed with or without interaction, or nested. The second factor can be a blocking (random) factor. For 3 factors, design is restricted to 2 fixed factors crossed (with or without interaction) inside blocks (third factor).
执行permutational为1至3个因素方差分析。 2个和3个因素,实验设计必须平衡。 2个因素,因素可以带或不带互动,交叉或嵌套。第二个因素是一个阻塞(随机)因素。对于3个因子,设计限制划线(有或没有相互作用)块(第三个因素)内的2个固定因素。
用法----------Usage----------
perm.anova(formula, nest.f2 = c("fixed", "random"), data=NULL, nperm = 999)
参数----------Arguments----------
参数:formula
a formula of the form response ~ factor(s) (see Details).
公式的形式response ~ factor(s)(详细)。
参数:nest.f2
in case of 2 nested factors, precision is needed if the nested factor (factor2) is "fixed" (default) or "random".
2嵌套因素的情况下,精度需要,如果嵌套因子(因数的)是"fixed"(默认)或"random"。
参数:data
an optional data frame containing the variables in the formula formula. By default the variables are taken from environment(formula).
一个可选的数据框包含公式formula中的变量。默认情况下,变量从environment(formula)。
参数:nperm
number of permutations.
的排列数。
Details
详细信息----------Details----------
For 2 factors, the formula can be:
2个因素,公式可以是:
response ~ factor1 + factor2 for 2 fixed factors without interaction
response ~ factor1 + factor2无相互作用的2个固定的因素
response ~ factor1 * factor2 for 2 fixed factors with interaction
response ~ factor1 * factor22个固定因素的相互作用
response ~ factor1 / factor2 for 2 fixed factors with factor2 nested into factor1 (if factor2 is a random factor, argument nest.f2 must be changed from "fixed" (default) to "random")
response ~ factor1 / factor2因数的因数的嵌套因子(2个固定的因素,如果是随机的因素,参数nest.f2必须改变"fixed"(默认)到"random")
response ~ factor1 | factor2 for 1 fixed factor (factor1) and 1 blocking (random) factor (factor2).
response ~ factor1 | factor21个固定系数(因子)和1阻塞(随机)因素(因数的)。
For 3 factors, the formula can only be:
对于3个因素,计算公式是:
response ~ factor1 + factor2 | factor3 or
response ~ factor1 + factor2 | factor3
response ~ factor1 * factor2 | factor3. The 2 factors are here fixed and crossed inside each level of the third, blocking (random), factor.
response ~ factor1 * factor2 | factor3。 2个因素在这里固定的,每个级别内的第三,阻塞(随机),因素和交叉。
值----------Value----------
参数:permutations
number of permutations.
的排列数。
参数:data.name
a character string giving the name(s) of the data.
给予(s)的数据的名称的字符串。
参数:table
analysis of variance table.
方差分析表。
(作者)----------Author(s)----------
Maxime Herv茅 <mx.herve@gmail.com>
实例----------Examples----------
set.seed(1203)
response <- c(rnorm(12),rpois(12,0.5),rnorm(12,2,1))
fact1 <- gl(3,12,labels=LETTERS[1:3])
fact2 <- gl(3,1,36,labels=letters[1:3])
fact3 <- gl(6,6,labels=letters[1:6])
block <- gl(2,6,36,labels=letters[1:2])
# 2 crossed fixed factors with interaction[2交叉固定因素与互动]
perm.anova(response~fact1*fact2)
# 2 nested fixed factors[2嵌套的固定因素]
perm.anova(response~fact1/fact2)
# 2 nested factors, fact2 being random[2个嵌套的因素,fact2是随机]
perm.anova(response~fact1/fact3,nest.f2="random")
# 1 fixed factor and 1 blocking (random) factor[1个固定因素和阻塞(随机)因素]
perm.anova(response~fact1|block)
转载请注明:出自 生物统计家园网(http://www.biostatistic.net)。
注:
注1:为了方便大家学习,本文档为生物统计家园网机器人LoveR翻译而成,仅供个人R语言学习参考使用,生物统计家园保留版权。
注2:由于是机器人自动翻译,难免有不准确之处,使用时仔细对照中、英文内容进行反复理解,可以帮助R语言的学习。
注3:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
|