plot.cox.zph(survival)
plot.cox.zph()所属R语言包:survival
Graphical Test of Proportional Hazards
图形测试的比例危害
译者:生物统计家园网 机器人LoveR
描述----------Description----------
Displays a graph of the scaled Schoenfeld residuals, along with a smooth curve.
舍恩的规模残差图显示,随着一条平滑的曲线。
用法----------Usage----------
## S3 method for class 'cox.zph'
plot(x, resid=TRUE, se=TRUE, df=4, nsmo=40, var, ...)
参数----------Arguments----------
参数:x
result of the cox.zph function.
cox.zph函数的结果。
参数:resid
a logical value, if TRUE the residuals are included on the plot, as well as the smooth fit.
一个逻辑值,如果TRUE残差的图,以及顺利适合。
参数:se
a logical value, if TRUE, confidence bands at two standard errors will be added.
一个逻辑值,如果TRUE,在两个标准误差的信心带将增加。
参数:df
the degrees of freedom for the fitted natural spline, df=2 leads to a linear fit.
自然样条拟合,df=2自由度线性拟合。
参数:nsmo
number of points used to plot the fitted spline.
用于绘制拟合样条曲线的点的数量。
参数:var
the set of variables for which plots are desired. By default, plots are produced in turn for each variable of a model. Selection of a single variable allows other features to be added to the plot, e.g., a horizontal line at zero or a main title. This has been superseded by a subscripting method; see the example below.
该图所需的变量集。默认情况下,在每一个模型的变量之交图。单变量的选择,允许其他功能被添加到图,例如,在零水平线或主标题。这已被取代由下标方法见下面的例子。
参数:...
additional graphical arguments passed to the plot function.
额外的图形参数传递给plot函数。
副作用----------Side Effects----------
a plot is produced on the current graphics device.
当前图形设备上产生的图。
参见----------See Also----------
coxph, cox.zph.
coxph,cox.zph。
举例----------Examples----------
vfit <- coxph(Surv(time,status) ~ trt + factor(celltype) +
karno + age, data=veteran, x=TRUE)
temp <- cox.zph(vfit)
plot(temp, var=5) # Look at Karnofsy score, old way of doing plot [看Karnofsy得分,老办法做图]
plot(temp[5]) # New way with subscripting [新的方式与标]
abline(0, 0, lty=3)
# Add the linear fit as well [以及添加线性拟合]
abline(lm(temp$y[,5] ~ temp$x)$coefficients, lty=4, col=3)
title(main="VA Lung Study")
转载请注明:出自 生物统计家园网(http://www.biostatistic.net)。
注:
注1:为了方便大家学习,本文档为生物统计家园网机器人LoveR翻译而成,仅供个人R语言学习参考使用,生物统计家园保留版权。
注2:由于是机器人自动翻译,难免有不准确之处,使用时仔细对照中、英文内容进行反复理解,可以帮助R语言的学习。
注3:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
|