potatoes(sfsmisc)
potatoes()所属R语言包:sfsmisc
Fisher's Potato Crop Data
费舍尔的马铃薯数据
译者:生物统计家园网 机器人LoveR
描述----------Description----------
Fisher's potato crop data set is of historical interest as an early example of a multi-factor block design.
费舍尔的马铃薯作物的数据集作为一个多因素的块设计一个早期的例子是历史的兴趣。
用法----------Usage----------
data(potatoes)
格式----------Format----------
A data frame with 64 observations on the following 5 variables.
64以下5个变量的观察数据框。
pos a factor with levels 1:4.
POS因素与水平1:4。
treat a factor with 16 levels A to H and
治疗的一个因素,16级A到H
nitrogen a factor specifying the amount of nitrogen
指定的氮气量氮的一个因素
potash a factor specifying the amount of potassium (K,
钾肥的一个因素,指定量的钾(K,
yield a numeric vector giving the yield of potatoes in ...
给土豆的产量产生一个数值向量...
源----------Source----------
Bennett, J. H. (1972) Collected Papers of R. A. Fischer vol.~II, 1925-31; The University of Adelaide.
贝内特,JH(1972)论文集的RA菲舍尔卷。~II,1925年至1931年,阿德莱德大学。
参考文献----------References----------
Studies in Crop Variation. VI. Experiments on the Response of the Potato to Potash and Nitrogen. J. Agricultural Science 19, 201–213. Accessible from Bennett (1972), see above.
实例----------Examples----------
data(potatoes)
## See the experimental design:[#实验设计:]
with(potatoes, {
cat("4 blocks of experiments;",
"each does every (nitrogen,potash) combination (aka 'treat'ment) once.",
'', sep="\n")
print(ftable(table(nitrogen, potash, treat)))
print(ftable(tt <- table(pos,potash,nitrogen)))
tt[cbind(pos,potash,nitrogen)] <- as.character(treat)
cat("The 4 blocks pos = 1, 2, 3, 4:\n")
ftable(tt)
})
## First plot:[#第一个图:]
with(potatoes, interaction.plot(potash,nitrogen, response=yield))
## ANOVAs:[#方差分析:]
summary(aov(yield ~ nitrogen * potash + Error(pos), data = potatoes))
# "==>" can use simply[“==>”可以简单地使用]
summary(aov(yield ~ nitrogen + potash + pos, data = potatoes))
# and[和]
summary(aov(yield ~ nitrogen + potash, data = potatoes))
转载请注明:出自 生物统计家园网(http://www.biostatistic.net)。
注:
注1:为了方便大家学习,本文档为生物统计家园网机器人LoveR翻译而成,仅供个人R语言学习参考使用,生物统计家园保留版权。
注2:由于是机器人自动翻译,难免有不准确之处,使用时仔细对照中、英文内容进行反复理解,可以帮助R语言的学习。
注3:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
|