mandms(UsingR)
mandms()所属R语言包:UsingR
Proportions of colors in various M and M's varieties
在不同的M和M的品种的颜色的比例
译者:生物统计家园网 机器人LoveR
描述----------Description----------
A bag of the candy M and M's has many different colors. Each large production batch is blended to the ratios given in this data set. The batches are thoroughly mixed and then the individual packages are filled by weight using high-speed equipment, not by count.
一个袋子的糖果M和M有许多不同的颜色。在这组数据的比例混合,每一个大的生产批次。批次是彻底混合,那么该个体产品的填充使用高速设备的重量,而不是由计数。
用法----------Usage----------
data(mandms)
格式----------Format----------
A data frame with 5 observations on the following 6 variables.
5个观察下面的6个变量的数据框。
blue percentage of blue
蓝色的蓝色的百分比
brown percentage of brown
棕色的棕色百分比
green percentage of green
绿色比例的绿色
orange percentage of orange
橙色的百分比橙
red percentage of red
红色的百分比红
yellow percentage of yellow
黄色黄色的百分比
源----------Source----------
This data is attributed to an email sent by Masterfoods USA, A Mars, Incoporated Company. This email was archived at the Math Forum, http://www.mathforum.org.
这个数据是每食富美国,一个火星,立案法公司发送的电子邮件。此电子邮件存档的数学论坛,http://www.mathforum.org的。
实例----------Examples----------
data(mandms)
bagfull = c(15,34,7,19,29,24)
names(bagfull) = c("blue","brown","green","orange","red","yellow")
prop = function(x) x/sum(x)
chisq.test(bagfull,p = prop(mandms["milk chocolate",]))
chisq.test(bagfull,p = prop(mandms["Peanut",]))
转载请注明:出自 生物统计家园网(http://www.biostatistic.net)。
注:
注1:为了方便大家学习,本文档为生物统计家园网机器人LoveR翻译而成,仅供个人R语言学习参考使用,生物统计家园保留版权。
注2:由于是机器人自动翻译,难免有不准确之处,使用时仔细对照中、英文内容进行反复理解,可以帮助R语言的学习。
注3:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
|