survfitcoxph.fit(survival)
survfitcoxph.fit()所属R语言包:survival
A direct interface to the ‘computational engine’ of survfit.coxph
“计算引擎”survfit.coxph的直接接口
译者:生物统计家园网 机器人LoveR
描述----------Description----------
This program is mainly supplied to allow other packages to invoke the survfit.coxph function at a "data" level rather than a "user" level. It does no checks on the input data that is provided, which can lead to unexpected errors if that data is wrong.
该方案主要是提供给在数据,而不是一个用户,让其他包调用survfit.coxph的功能。它不检查输入所提供的数据,这可能会导致意想不到的错误,如果该数据是错误的。
用法----------Usage----------
survfitcoxph.fit(y, x, wt, x2, risk, newrisk, strata, se.fit, survtype,
vartype, varmat, id, y2, strata2, unlist=TRUE)
参数----------Arguments----------
参数:y
the response variable used in the Cox model. (Missing values removed of course.)
响应变量的Cox比例风险模型。 (缺失值的过程中删除)。
参数:x
covariate matrix used in the Cox model
用Cox模型中的协变量矩阵
参数:wt
weight vector for the Cox model. If the model was unweighted use a vector of 1s.
Cox模型的权重向量。如果模型未加权的向量1。
参数:x2
matrix describing the hypothetical subjects for which a curve is desired. Must have the same number of columns as x.
矩阵描述的假想曲线所需的主题。必须具有相同的列数x。
参数:risk
the risk score exp(X beta) from the fitted Cox model. If the model had an offset, include it in the argument to exp.
从拟合Cox比例风险模型的风险得分EXP(X测试版)。如果模型的偏移量,包括它的参数为exp。
参数:newrisk
risk scores for the hypothetical subjects
风险评分为假想的主题
参数:strata
strata variable used in the Cox model. This will be a factor.
地层中使用的变量的Cox比例风险模型。这将是一个因素。
参数:se.fit
if TRUE the standard errors of the curve(s) are returned
如果TRUE的标准误差曲线(S)返回
参数:survtype
1=Kalbfleish-Prentice, 2=Nelson-Aalen, 3=Efron. It is usual to match this to the approximation for ties used in the coxph model: KP for "exact", N-A for "breslow" and Efron for "efron".
1 = Kalbfleish学徒,2 =纳尔逊 - 阿伦,3 =埃弗龙。这是通常的匹配coxph型号:KP使用“精确”,NA布瑞斯罗夫和埃弗龙“埃弗龙”为纽带的近似。
参数:vartype
1=Greenwood, 2=Aalen, 3=Efron
1 = 2 = 3 =阿伦,埃弗龙格林伍德,
参数:varmat
the variance matrix of the coefficients
的系数的方差矩阵
参数:id
optional; if present and not NULL this should be a vector of identifiers of length nrow(x2). A mon-null value signifies that x2 contains time dependent covariates, in which case this identifies which rows of x2 go with each subject.
可选的,如果存在的话,而不是NULL,这应该是一个矢量的标识符的长度nrow(x2)。一个星期一空值表示x2包含随时间变化的协变量,在这种情况下,标识x2每个主题行。
参数:y2
survival times, for time dependent prediction. It gives the time range (time1,time2] for each row of x2. Note: this must be a Surv object and thus contains a status indicator, which is never used in the routine, however.
生存时间,随时间变化的预测。它给出的时间范围内(时间1,时间2]的每一行x2。注意:这必须是一个幸存者的对象,因此包含一个状态指示灯,这是从来没有使用过,但是在日常。
参数:strata2
vector of strata indicators for x2. This must be a factor.
矢量地层指标x2。这必须是一个因素。
参数:unlist
if FALSE the result will be a list with one element for each strata. Otherwise the strata are “unpacked” into the form found in a survfit object.
如果FALSE的结果将是一个列表用一种元素为每个阶层。否则,地层“解包”到形式在survfit对象。
值----------Value----------
a list containing nearly all the components of a survfit object. All that is missing is to add the confidence intervals, the type of the original model's response (as in a coxph object), and the class.
一个列表,其中包含几乎所有组件的survfit对象。缺少的是添加置信区间,原始模型的响应(如在coxph对象)的类型,和类。
注意----------Note----------
The source code for for both this function and survfit.coxph is written using noweb. For complete documentation see the inst/sourcecode.pdf file.
的源代码,用于这方面的功能和survfit.coxph是书面使用noweb的。完整的文档,请参阅inst/sourcecode.pdf文件。
(作者)----------Author(s)----------
Terry Therneau
参见----------See Also----------
survfit.coxph
survfit.coxph
转载请注明:出自 生物统计家园网(http://www.biostatistic.net)。
注:
注1:为了方便大家学习,本文档为生物统计家园网机器人LoveR翻译而成,仅供个人R语言学习参考使用,生物统计家园保留版权。
注2:由于是机器人自动翻译,难免有不准确之处,使用时仔细对照中、英文内容进行反复理解,可以帮助R语言的学习。
注3:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
|