TV(vcdExtra)
TV()所属R语言包:vcdExtra
TV Viewing Data
电视观看数据
译者:生物统计家园网 机器人LoveR
描述----------Description----------
This data set TV comprises a 5 x 11 x 3 contingency table based on audience viewing data from Neilsen Media Research for the week starting November 6, 1995.
该数据集TV包括5×11×3列联表的基础上的观众收视数据来自尼尔森媒体研究1995年11月6日开始的一周。
用法----------Usage----------
data(TV)
格式----------Format----------
A 5 x 11 x 3 array of cell frequencies with the following structure:
5×11×3阵列具有以下结构的单元的频率:
Details
详细信息----------Details----------
The original data, tv.dat, contains two additional networks: "Fox" and "Other", with small frequencies. These levels were removed in the current version. There is also a fourth factor, transition State transition (turn the television Off, Switch channels, or Persist in viewing the current channel). The TV data here includes only the Persist observations.
原始数据,tv.dat,包含两个额外的网络:“狐”和“其他”,小的频率。这些级别是在目前的版本中删除。还设有一个第四个因素,过渡状态转换(请关闭电视,切换信道,或坚持在观看当前信道)。 TV数据仅包括坚持观察。
源----------Source----------
The original data, tv.dat, came from the initial implementation of mosaic displays in R by Jay Emerson. Similar data had been used by Hartigan and Kleiner (1984) as an illustration.
原始数据,tv.dat,来自周杰伦艾默生初步实现了马赛克显示在R。类似的数据已被用于哈蒂根和Kleiner(1984年)作为一个例子。
参考文献----------References----------
实例----------Examples----------
data(TV)
structable(TV)
doubledecker(TV)
# reduce number of levels of Time[减少的水平的时间]
TV.df <- as.data.frame.table(TV)
levels(TV.df$Time) <- rep(c("8:00-8:59", "9:00-9:59", "10:00-10:44"), c(4, 4, 3))
TV2 <- xtabs(Freq ~ Day + Time + Network, TV.df)
# re-label for mosaic display[重新拼接显示的标签]
levels(TV.df$Time) <- c("8", "9", "10")
# fit mode of joint independence, showing association of Network with Day*Time[符合模式的联合独立性,协会网络与日*时间]
mosaic(~ Day + Network + Time, data = TV.df, expected = ~ Day:Time + Network, legend = FALSE)
# with doubledecker arrangement[doubledecker安排]
mosaic(~ Day + Network + Time, data = TV.df, expected = ~ Day:Time + Network,
split = c(TRUE, TRUE, FALSE), spacing = spacing_highlighting, legend = FALSE)
转载请注明:出自 生物统计家园网(http://www.biostatistic.net)。
注:
注1:为了方便大家学习,本文档为生物统计家园网机器人LoveR翻译而成,仅供个人R语言学习参考使用,生物统计家园保留版权。
注2:由于是机器人自动翻译,难免有不准确之处,使用时仔细对照中、英文内容进行反复理解,可以帮助R语言的学习。
注3:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
|