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

R语言:residuals.coxph()函数中文帮助文档(中英文对照)

[复制链接]
发表于 2012-2-16 20:46:12 | 显示全部楼层 |阅读模式
residuals.coxph(survival)
residuals.coxph()所属R语言包:survival

                                         Calculate Residuals for a ‘coxph’ Fit
                                         计算残值为coxph“适合

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

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

Calculates martingale, deviance, score or Schoenfeld residuals for a Cox proportional hazards model.
计算了Cox比例风险模型的鞅,越轨行为,得分或舍恩的残差。


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


## S3 method for class 'coxph'
residuals(object,
       type=c("martingale", "deviance", "score", "schoenfeld",
              "dfbeta", "dfbetas", "scaledsch","partial"),
       collapse=FALSE, weighted=FALSE, ...)
## S3 method for class 'coxph.null'
residuals(object,
       type=c("martingale", "deviance","score","schoenfeld"),
       collapse=FALSE, weighted=FALSE, ...)



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

参数:object
an object inheriting from class coxph, representing a fitted Cox regression model. Typically this is the output from the coxph function.  
一个对象从coxph类代表拟合Cox回归模型,继承。通常,这是从coxph函数的输出。


参数:type
character string indicating the type of residual desired. Possible values are "martingale", "deviance", "score", "schoenfeld", "dfbeta"', "dfbetas", and "scaledsch". Only enough of the string to determine a unique match is required.  
字符串表明残留想要的类型。可能的值是"martingale","deviance","score","schoenfeld"“dfbeta”,"dfbetas","scaledsch"。只有足够的字符串,以确定一个独特的比赛是必需的。


参数:collapse
vector indicating which rows to collapse (sum) over. In time-dependent models more than one row data can pertain to a single individual. If there were 4 individuals represented by 3, 1, 2 and 4 rows of data respectively, then collapse=c(1,1,1, 2, 3,3, 4,4,4,4) could be used to obtain per subject rather than per observation residuals.  
向量表示折叠的行(总和)超过。在时间依赖模型的多个行数据可以涉及到一个单一的个体。如果有数据,1,2和4行分别代表了4个人,然后collapse=c(1,1,1, 2, 3,3, 4,4,4,4)可以用来获得观测残差,而不是每科每。


参数:weighted
if TRUE and the model was fit with case weights, then the weighted residuals are returned.  <tr valign="top"><td>...</td>
如果TRUE和模型是适合的情况下重量,然后加权残值返回。 <tr valign=&quot;top&quot;> <TD>...</ TD>

other unused arguments </table>
其他未使用的参数</ TABLE>


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

For martingale and deviance residuals, the returned object is a vector with one element for each subject (without collapse). For score residuals it is a matrix with one row per subject and one column per variable. The row order will match the input data for the original fit. For Schoenfeld residuals, the returned object is a matrix with one row for each event and one column per variable.  The rows are ordered by time within strata, and an attribute strata is attached that contains the number of observations in each strata. The scaled Schoenfeld residuals are used in the cox.zph function.
鞅和偏差残差,返回的对象是与每个主题元素矢量(不collapse)。对于score残差,它是一个有一排每个科目,每个变量的一列的矩阵。行顺序将匹配原合适的输入数据。舍恩残差,返回的对象是一排为每个事件,每个变量的一列的矩阵。行有序时间内地层,包含各阶层的意见,附加的属性strata。 cox.zph函数的规模舍恩残差。

The score residuals are each individual's contribution to the score vector. Two transformations of this are often more useful: dfbeta is the approximate change in the coefficient vector if that observation were dropped, and dfbetas is the approximate change in the coefficients, scaled by the standard error for the coefficients.
比分残差是每一个人的贡献得分向量。这两个转换往往更加有用:dfbeta系数向量的近似变化,观察下降,dfbetas是近似系数的变化,比例系数的标准误差。


注:----------NOTE----------

For deviance residuals, the status variable may need to be reconstructed. For score and Schoenfeld residuals, the X matrix will need to be reconstructed.
对于越轨残差,状态变量可能需要重建。 X矩阵的得分和舍恩残差,需要重建。


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

for survival models&quot;, Biometrika, March 1990.

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

coxph
coxph


举例----------Examples----------



fit <- coxph(Surv(start, stop, event) ~ (age + surgery)* transplant,
               data=heart)
mresid <- resid(fit, collapse=heart$id)

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


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

使用道具 举报

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

本版积分规则

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

GMT+8, 2025-1-24 05:21 , Processed in 0.032101 second(s), 16 queries .

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

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