Learn R Programming

survMisc (version 0.2)

compSurvfit: Compare two survival curves

Description

Compare survival curves.

Usage

compSurvfit(s, FHp = 1, FHq = 1, round1 = 5, scores = "",
    lim = 10000)

Arguments

s
A survfit object
FHp
$p$ for Fleming-Harrington test
FHq
$q$ for Fleming-Harrington test
round1
No. digits to which to round (for display)
scores
scores (used if >2 groups) if no value is given this is set as $1,2,...,K$ the no. of predictors
lim
limit (used if 2 groups) limit to which to calculate $Pr[\sup|B(t)|>x]$)

Value

  • A list with the following elements: [object Object],[object Object],[object Object]

References

Gehan A. A Generalized Wilcoxon Test for Comparing Arbitrarily Singly-Censored Samples. Biometrika 1965 Jun. 52(1/2):203--23. http://www.jstor.org/stable/2333825{JSTOR} Tarone RE, Ware J 1977 On Distribution-Free Tests for Equality of Survival Distributions. Biometrika;64(1):156--60. http://www.jstor.org/stable/2335790{JSTOR}

See Also

tneSurvByGroup comp2Surv compNSurv

Examples

Run this code
data(kidney,package="KMsurv")
s <- survfit(Surv(time=time, event=delta) ~ type, data=kidney )
compSurvfit(s)
data(gastric)
s1 <- survfit(Surv(time=time,event=event) ~ group, data=gastric)
compSurvfit(s1)
data(bmt,package="KMsurv")
b1 <- bmt[bmt$group==1,]
s2 <- survfit(Surv(time=t2, event=d3) ~ group, data=bmt)
compSurvfit(s2)

Run the code above in your browser using DataLab