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

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

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

                                         Create a Survival Object
                                         创建的存活对象

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

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

Create a survival object, usually used as a response variable in a model formula.
创建一个生存对象,通常用作在模型公式中的响应变量。


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


SurvS4(time, time2, event, type =, origin = 0)
is.SurvS4(x)



参数----------Arguments----------

参数:time
for right censored data, this is the follow up time.  For interval data, the first argument is the starting time for the interval.  
右删失数据,这是随访时间。区间数据,第一个参数是时间间隔的开始时间。


参数:x
any R object.  
任何R对象。


参数:event
The status indicator, normally 0=alive, 1=dead.  Other choices are TRUE/FALSE (TRUE = death) or 1/2 (2=death). For interval censored data, the status indicator is 0=right censored, 1=event at time, 2=left censored, 3=interval censored. Although unusual, the event indicator can be omitted, in which case all subjects are assumed to have an event.  
状态指示灯,通常为0 =活着,1 =死。其他的选择是TRUE/FALSE(TRUE =死亡)或1/2(2 =死亡)。区间数据,状态指示灯为0 =右删失,1 =事件在time,2 =左审查,3 =区间。虽然不寻常,事件指示器可以省略,在这种情况下,假定所有的科目有一个事件。


参数:time2
ending time of the interval for interval censored  or counting process data only.  Intervals are assumed to be open on the left and closed on the right, (start, end].  For counting process data, event indicates whether an event occurred at the end of the interval.  
结束时间区间或仅在计数过程中数据的时间间隔。的时间间隔都被假定为在左侧打开和关闭在右边,(start, end]。用于计数过程数据,event表示一个事件是否发生在时间间隔结束时。


参数:type
character string specifying the type of censoring. Possible values are "right", "left", "counting", "interval", or "interval2".  The default is "right" or "counting" depending on whether the time2 argument is absent or present, respectively.  
字符串指定类型的审查。可能的值是"right","left","counting","interval"或"interval2"。默认值是"right"或"counting"取决于是否time2的说法是不存在或存在,分别。


参数:origin
for counting process data, the hazard function origin.  This is most often used in conjunction with a model containing time dependent strata in order to align the subjects properly when they cross over from one strata to another.  
计数过程数据,风险函数原点。这是最经常使用的一个模型的结合含有时间依赖性地层中以对齐主题当他们妥善跨越到另一个从一个阶层。


Details

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

Typical usages are
典型的用法是


值----------Value----------

An object of class SurvS4 (formerly Surv). There are methods for print, is.na, and subscripting survival objects. SurvS4 objects are implemented as a matrix of 2 or 3 columns.
类的一个对象SurvS4(原Surv)。有print,is.na,和下标生存的对象的方法。 SurvS4对象被实现为2或3列的矩阵。

In the case of is.SurvS4, a logical value TRUE if x inherits from class "SurvS4", otherwise a FALSE.
的情况下,is.SurvS4,一个逻辑值,TRUE如果x继承自类"SurvS4",否则FALSE。


注意----------Note----------

The purpose of having SurvS4 in VGAM is so that the same input can be fed into vglm as functions in survival such as survreg.  The class name has been changed from "Surv" to "SurvS4"; see SurvS4-class.
目的有SurvS4VGAM是相同的输入可以被送入vglm的函数survival如survreg。类的名称已被更改;看到"Surv"从"SurvS4"到SurvS4-class。

The format J+ is interpreted in VGAM as ≥ J. If type="interval" then these should not be used in VGAM: (L,U-] or  (L,U+].
的格式J+解释VGAM≥ J。如果type="interval"然后这些不应该被用于VGAM:(L,U-]或(L,U+]。


(作者)----------Author(s)----------



The code and documentation comes from <span class="pkg">survival</span>.
Slight modifications have been made for conversion to S4 by T. W. Yee.
Also, for <code>"interval"</code> data, <code>as.character.SurvS4()</code> has
been modified to print intervals of the form
<code>(start, end]</code> and not
<code>[start, end]</code> as previously.
(This makes a difference for discrete data, such as for
<code><a href="cenpoisson.html">cenpoisson</a></code>).
All <span class="pkg">VGAM</span> family functions beginning with <code>"cen"</code> require
the packaging function <code>Surv</code> to format the input.




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

SurvS4-class, cenpoisson,   survreg, leukemia.
SurvS4-class,cenpoisson,survreg,leukemia。


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


with(leukemia, SurvS4(time, status))
class(with(leukemia, SurvS4(time, status)))

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


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

使用道具 举报

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

本版积分规则

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

GMT+8, 2024-11-26 11:48 , Processed in 0.025806 second(s), 16 queries .

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

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