twostage(TSHRC)
twostage()所属R语言包:TSHRC
Two-stage procedure for comparing hazard rate functions
两阶段程序比较危险率函数
译者:生物统计家园网 机器人LoveR
描述----------Description----------
Two-stage procedure for comparing hazard rate functions, especially suited for situation where hazard rate functions cross.
两阶段程序比较危险率的功能,特别适合于危险率函数的情况下,交叉。
用法----------Usage----------
twostage(time, delta, group, nboot, alpha = 0.05, eps = 0.1)
参数----------Arguments----------
参数:time
a vector of type "numeric". Must be nonnegative. Failure time or censoring time.
的向量类型"numeric"。必须为正数。故障时间或审查时间。
参数:delta
a vector of type "numeric" of the same length as time. Must be zero or one. One indicates failure, zero indicates censored.
类型的向量的"numeric"time具有相同的长度。必须是零或1。一个表示失败,0表示审查。
参数:group
a vector of type "numeric" of the same length as time. Must be zero or one. One indicates treatment group, zero indicates control group.
类型的向量的"numeric"time具有相同的长度。必须是零或1。一个指示治疗组,0表示对照组。
参数:nboot
number of bootstrap samples. Must be positive integer.
bootstrap样本数量。必须是正整数。
参数:alpha
significance level, must be between zero and one.
显着性水平,必须是在零和一之间。
参数:eps
small number used in defining the test statistic. Must be between zero and one. See cited paper for discussion.
少数用于定义检验统计量。必须是零和一之间。被引论文进行讨论。
Details
详细信息----------Details----------
This procedure compares two hazard rate functions in two stages. In the first stage, the conventional log-rank test is performed, which is powerful only when the two hazard rate functions do not cross each other. When the two hazard rate functions cross each other, positive differences and negative differences between the two functions would be canceled out in the log-rank test statistic, resulting in ineffective comparison. If the log-rank test gives a significant result, then the entire two-stage procedure stops and we conclude that the two hazard rate functions are significantly different. Otherwise, the stage-II test is performed, which is designed specifically for detecting crossing difference between the two hazard rate functions and has the property that its test statistic is independent of the log-rank test statistic. The independence property is used in properly defining the p-value of the two-stage procedure, based on the p-values of the two
此过程比较两个在两个阶段的危险率函数。在第一阶段中,进行常规的log-rank检验,这是强大的,只有当两个危险率函数不彼此交叉。当两个交叉彼此,正面的差异和负两个函数之间的差异将被取消在log-rank检验统计量,从而导致无效比较危险率函数。如果log-rank检验给出了一个显着的结果,那么整个两阶段程序停止,我们可以得出结论,这两个危险率的功能有显着的不同。否则,第二阶段进行测试,这是专为检测交叉区别两者之间的危险率函数和属性,其检验统计量是独立的log-rank检验统计。的独立属性用于在正确定义的p-值的两阶段的程序,是根据在p-值的两个
值----------Value----------
vector of P-values. "LRPV": p-value of the log-rank test, "MTPV": p-value of the suggested stage-II test, "TSPV": p-value of the two-stage test.
P值的矢量。 "LRPV":p值的log-rank检验,"MTPV":p值的建议-II期试验,"TSPV":p值两阶段的测试。
参考文献----------References----------
Qiu, P. and Sheng, J. (2008). A two-stage procedure for comparing hazard rate functions. Journal of the Royal Statistical Society: Series B, 70:191-208.
实例----------Examples----------
library(TSHRC)
data(rats)
attach(rats)
twostage(time, delta, group, nboot = 100)
转载请注明:出自 生物统计家园网(http://www.biostatistic.net)。
注:
注1:为了方便大家学习,本文档为生物统计家园网机器人LoveR翻译而成,仅供个人R语言学习参考使用,生物统计家园保留版权。
注2:由于是机器人自动翻译,难免有不准确之处,使用时仔细对照中、英文内容进行反复理解,可以帮助R语言的学习。
注3:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
|