找回密码
 注册
查看: 329|回复: 0

R语言 VGAM包 crashes()函数中文帮助文档(中英文对照)

[复制链接]
发表于 2012-10-1 15:31:04 | 显示全部楼层 |阅读模式
crashes(VGAM)
crashes()所属R语言包:VGAM

                                        Crashes on New Zealand Roads in 2009
                                         新西兰在2009年的道路上崩溃

                                         译者:生物统计家园网 机器人LoveR

描述----------Description----------

A variety of reported crash data cross-classified  by time (hour of the day) and day of the week, accumulated over 2009. These include fatalities and injuries (by car), trucks, motor cycles, bicycles  and pedestrians.  There are some alcohol-related data too.
交叉分类的各种报告的碰撞数据的时间(小时的一天)和星期几,2009年积累的。这些措施包括死亡和受伤人数(车),货车,摩托车,自行车和行人。也有一些与酒精相关的数据。


用法----------Usage----------


data(crashi)
data(crashf)
data(crashtr)
data(crashmc)
data(crashbc)
data(crashp)
data(alcoff)
data(alclevels)



格式----------Format----------

Data frames with hourly times as rows and days of the week as columns. The alclevels dataset has hourly times and alcohol levels.
每小时行和列本周日的数据框。 alclevels数据集有每小时的时间和酒精含量。

Day of the week.
那天是星期几。

Blood alcohol level (milligrams alcohol per 100 millilitres of blood).
血液中酒精含量(毫克每100毫升血液中的酒精)。


Details

详细信息----------Details----------

Each cell is the aggregate number of crashes reported at each hour-day combination, over the 2009 calendar year. The rownames of each data frame is the start time (hourly from midnight onwards) on a 24 hour clock, e.g., 21 means 9.00pm to 9.59pm.
每个单元是每个小时,每天的组合,较2009年的历年报告总数的崩溃。 rownames每个数据框的开始时间(从午夜开始每小时)24小时制,例如,21表示晚上9点到下午9点59分。

For crashes, chrashi are the number of injuries by car, crashf  are the number of fatalities by car (not included in chrashi), crashtr are the number of crashes involving trucks,  crashmc are the number of crashes involving motorcyclists, crashbc are the number of crashes involving bicycles, and crashp  are the number of crashes involving pedestrians. For alcohol-related offences, alcoff  are the number of alcohol offenders from breath screening drivers, and alclevels are the blood alcohol levels of fatally injured drivers.
崩溃,chrashi是伤车的数量,crashf数,死亡人数汽车(不包括在chrashi)crashtr是交通事故的数量卡车,crashmc是电单车驾驶引发的道路交通事故的数量,crashbc是涉及单车事故的数量,和crashp是涉及行人的事故数量。酒精有关的罪行,alcoff是从呼气测试司机的酒精罪犯的数量,和alclevels是致命伤害的驾驶员血液中的酒精水平。


源----------Source----------

http://www.transport.govt.nz/research/Pages/Motor-Vehicle-Crashes-in-New-Zealand-2009.aspx. Thanks to Warwick Goold and Alfian F. Hadi for assistance.
http://www.transport.govt.nz/research/Pages/Motor-Vehicle-Crashes-in-New-Zealand-2009.aspx。感谢华威古尔德和Alfian的F.哈迪援助。


参考文献----------References----------

Statistical Statement Calendar Year 2009. Ministry of Transport, NZ Government; Yearly Report 2010. ISSN: 1176-3949

参见----------See Also----------

rrvglm, rcam, grc.
rrvglm,rcam,grc。


实例----------Examples----------


## Not run:  plot(unlist(alcoff), type = "l", frame.plot = TRUE,[#未运行图(不公开(alcoff)的类型=“L”,frame.plot = TRUE,]
     axes = FALSE, col = "blue", bty = "o",
     main = "Alcoholic offenders on NZ roads, aggregated over 2009",
     sub  = "Vertical lines at midnight (purple) and noon (orange)",
     xlab = "Day/hour", ylab = "Number of offenders")
axis(1, at = 1 + (0:6) * 24 + 12, labels = colnames(alcoff))
axis(2, las = 1)
axis(3:4, labels = FALSE, tick = FALSE)
abline(v = sort(1 + c((0:7) * 24, (0:6) * 24 + 12)), lty = "dashed",
       col = c("purple", "orange"))
## End(Not run)[#(不执行)]

# Goodmans RC models[高文RC模型]
fitgrc1 <- grc(alcoff) # Rank-1 model[等级-1型]
fitgrc2 <- grc(alcoff, Rank = 2, Corner = FALSE, Uncor = TRUE)
print(Coef(fitgrc2), dig = 2)
## Not run:  biplot(fitgrc2, scaleA = 2.3, Ccol = "blue", Acol = "orange",[#不运行:双标图(fitgrc2,斯卡莱亚= 2.3,CCOL =“蓝”,ACOL =“橙色”,]
       Clabels = as.character(1:23), xlim = c(-1.3, 2.3),
       ylim = c(-1.2, 1))
## End(Not run)[#(不执行)]

转载请注明:出自 生物统计家园网(http://www.biostatistic.net)。


注:
注1:为了方便大家学习,本文档为生物统计家园网机器人LoveR翻译而成,仅供个人R语言学习参考使用,生物统计家园保留版权。
注2:由于是机器人自动翻译,难免有不准确之处,使用时仔细对照中、英文内容进行反复理解,可以帮助R语言的学习。
注3:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

手机版|小黑屋|生物统计家园 网站价格

GMT+8, 2024-11-26 19:41 , Processed in 0.022590 second(s), 15 queries .

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

快速回复 返回顶部 返回列表