Surv(survival)
Surv()所属R语言包:survival
Create a Survival Object
创建一个生存的对象
译者:生物统计家园网 机器人LoveR
描述----------Description----------
Create a survival object, usually used as a response variable in a model formula. Argument matching is special for this function, see Details below.
创建一个生存的对象,通常用来作为响应变量在模型公式。参数匹配是特殊的功能,详见下文。
用法----------Usage----------
Surv(time, time2, event,
type=c('right', 'left', 'interval', 'counting', 'interval2'),
origin=0)
is.Surv(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.
右删失数据,这是跟进时间。区间数据,第一个参数是间隔的起始时间。
参数: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 =事件在time2 =左截尾,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 option was intended to be 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, but it has rarely proven useful.
点票过程的数据,风险函数的起源。此选项的目的是要包含时间取决于地层模型一起使用,以便使正确当他们穿越到另一个从一个阶层以上的科目,但它已很少被证明是有益的。
参数:x
any R object.
任何R对象。
Details
详情----------Details----------
Typical usages are
典型的用法
值----------Value----------
An object of class Surv. There are methods for print, is.na, and subscripting survival objects. Surv objects are implemented as a matrix of 2 or 3 columns.
对象类Surv。有print,is.na,标存活对象的方法。 Surv对象实施了2或3列的矩阵。
In the case of is.Surv, a logical value TRUE if x inherits from class "Surv", otherwise an FALSE.
在is.Surv,逻辑值TRUE如果x类"Surv",否则FALSE继承。
参见----------See Also----------
coxph, survfit, survreg.
coxph,survfit,survreg。
举例----------Examples----------
with(lung, Surv(time, status))
Surv(heart$start, heart$stop, heart$event)
转载请注明:出自 生物统计家园网(http://www.biostatistic.net)。
注:
注1:为了方便大家学习,本文档为生物统计家园网机器人LoveR翻译而成,仅供个人R语言学习参考使用,生物统计家园保留版权。
注2:由于是机器人自动翻译,难免有不准确之处,使用时仔细对照中、英文内容进行反复理解,可以帮助R语言的学习。
注3:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
|