hazard.ratio.plot(rms)
hazard.ratio.plot()所属R语言包:rms
Hazard Ratio Plot
风险比图
译者:生物统计家园网 机器人LoveR
描述----------Description----------
The hazard.ratio.plot function repeatedly estimates Cox regression coefficients and confidence limits within time intervals. The log hazard ratios are plotted against the mean failure/censoring time within the interval. Unless times is specified, the number of time intervals will be \max(round(d/e),2), where d is the total number of events in the sample. Efron's likelihood is used for estimating Cox regression coefficients (using coxph.fit). In the case of tied failure times, some intervals may have a point in common.
hazard.ratio.plot功能重复的估计回归系数的置信区间内的时间间隔。对审查的间隔时间内的平均故障/log的危险比绘制。除非times指定的时间间隔,将\max(round(d/e),2),d是在样品总数的事件。 ·埃夫隆的可能性是用于估计回归系数(使用coxph.fit)。在并列的失效时间的情况下,某些间隔可具有共同的一个点。
用法----------Usage----------
hazard.ratio.plot(x, Srv, which, times=, e=30, subset,
conf.int=.95, legendloc=NULL, smooth=TRUE, pr=FALSE, pl=TRUE,
add=FALSE, ylim, cex=.5, xlab="t", ylab, antilog=FALSE, ...)
参数----------Arguments----------
参数:x
a vector or matrix of predictors
一个向量或矩阵的预测
参数:Srv
a Surv object
一个幸存者对象
参数:which
a vector of column numbers of x for which to estimate hazard ratios across time and make plots. The default is to do so for all predictors. Whenever one predictor is displayed, all other predictors in the x matrix are adjusted for (with a separate adjustment form for each time interval).
一个向量的x估计的危险比跨越时间和做图的列号。默认情况下是这样做的所有预测。每当一个预测器显示的,所有其他的预测在x矩阵调整(与一个单独的调整形式为每个时间间隔)。
参数:times
optional vector of time interval endpoints. Example: times=c(1,2,3) uses intervals [0,1), [1,2), [2,3), [3+). If times is omitted, uses intervals containing e events
时间间隔端点可选的矢量。例如:times=c(1,2,3)使用的时间间隔[0,1), [1,2), [2,3), [3+)。如果省略倍,使用e事件的时间间隔
参数:e
number of events per time interval if times not given
每个时间间隔的事件,如果没有给数
参数:subset
vector used for subsetting the entire analysis, e.g. subset=sex=="female"
矢量用于全分析集的子集,例如subset=sex=="female"
参数:conf.int
confidence interval coverage
置信区间覆盖
参数:legendloc
location for legend. Omit to use mouse, "none" for none, "ll" for lower left of graph, or actual x and y coordinates (e.g. c(2,3))
对于传说中的位置。省略使用鼠标,"none"为没有,"ll"左下图,或实际的x和y坐标(例如c(2,3))
参数:smooth
also plot the super–smoothed version of the log hazard ratios
也绘制了超平滑的log危险比
参数:pr
defaults to FALSE to suppress printing of individual Cox fits
默认为FALSE抑制个人考克斯适合印刷
参数:pl
defaults to TRUE to plot results
默认TRUE绘制结果
参数:add
add this plot to an already existing plot
这个图添加到一个已经存在的图
参数:ylim
vector of y-axis limits. Default is computed to include confidence bands.
y轴范围的向量。默认值是计算包括置信区间。
参数:cex
character size for legend information, default is 0.5
图例信息的字符大小,默认值为0.5
参数:xlab
label for x-axis, default is "t"
标签为x轴,默认为"t"
参数:ylab
label for y-axis, default is "Log Hazard Ratio" or "Hazard Ratio", depending on antilog.
标签y轴,默认是"Log Hazard Ratio"或"Hazard Ratio",根据antilog。
参数:antilog
default is FALSE. Set to TRUE to plot anti-log, i.e., hazard ratio.
默认是FALSE。设置TRUE绘制反log,即危险比。
参数:...
optional graphical parameters </table>
可选的图形参数</ TABLE>
(作者)----------Author(s)----------
Frank Harrell<br>
Department of Biostatistics, Vanderbilt University<br>
f.harrell@vanderbilt.edu
参见----------See Also----------
cox.zph, residuals.cph, survival-internal, cph, coxph, Surv
cox.zph,residuals.cph,survival-internal,cph,coxph,Surv
实例----------Examples----------
n <- 500
set.seed(1)
age <- 50 + 12*rnorm(n)
cens <- 15*runif(n)
h <- .02*exp(.04*(age-50))
d.time <- -log(runif(n))/h
label(d.time) <- 'Follow-up Time'
e <- ifelse(d.time <= cens,1,0)
d.time <- pmin(d.time, cens)
units(d.time) <- "Year"
hazard.ratio.plot(age, Surv(d.time,e), e=20, legendloc='ll')
转载请注明:出自 生物统计家园网(http://www.biostatistic.net)。
注:
注1:为了方便大家学习,本文档为生物统计家园网机器人LoveR翻译而成,仅供个人R语言学习参考使用,生物统计家园保留版权。
注2:由于是机器人自动翻译,难免有不准确之处,使用时仔细对照中、英文内容进行反复理解,可以帮助R语言的学习。
注3:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
|