Learn R Programming

survMisc (version 0.2)

comp2Surv: Compare two survival curves

Description

Compare two survival curves. Inputs are vectors corresponding to observations at a set of discrete time points for right censored data.

Usage

comp2Surv(n, e, n1, e1, FHp = 1, FHq = 1, lim = 10000,
    round1 = 5)

Arguments

n
No. at risk (overall)
e
No. events (overall)
n1
No. at risk in group 1 (arbitrary; either group)
e1
No. events in group 1 (arbitrary; either group)
FHp
$p$ for Fleming-Harrington test
FHq
$q$ for Fleming-Harrington test
lim
limit; used the calculating estimate of $Pr[\sup|B(t)|>x]$ for supremum tests. Higher values will be more accuate, but this is asymptotic for values of $>1e4$.
round1
No. digits to which to round (for display)

Value

  • A list of 2 data frames. In each, there is one row for each of the weights, as given above. [object Object],[object Object]

Details

[object Object],[object Object]

References

Peto R, Peto J 1972 Asymptotically Efficient Rank Invariant Test Procedures. J Royal Statistical Society 135(2):186--207. http://www.jstor.org/stable/2344317{JSTOR} Fleming TR, Harrington DP, O'Sullivan M 1987 Supremum Versions of the Log-Rank and Generalized Wilcoxon Statistics. J American Statistical Association 82(397):312--20. http://www.jstor.org/stable/2289169{JSTOR} Billingsly P 2009 Convergence of Probability Measures. New York: John Wiley & Sons. http://books.google.com/books/about/Convergence_of_Probability_Measures.html?id=GzjbezrsrFcC{Google Books}

See Also

Calls covMatSurv Called by compSurvfit

Examples

Run this code
data(tneKidney)
comp2Surv(n=tneKidney$n,e=tneKidney$e,n1=tneKidney$n_1,e1=tneKidney$e_1)

Run the code above in your browser using DataLab