Learn R Programming

survMisc (version 0.2)

compNSurv: Compare more than two survival curves

Description

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

Usage

compNSurv(t, n, e, n1, e1, FHp, FHq, scores = "",
    round1 = 5)

Arguments

t
Time
n
No. at risk (overall)
e
No. events (overall)
n1
No. at risk per group
e1
No. of events per group
FHp
$p$ for Fleming-Harrington test
FHq
$q$ for Fleming-Harrington test
scores
scores; if no value is given this is set as $1,2,...,K$ the no. of predictors
round1
No. digits to which to round (for display)

Value

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

Details

[object Object],[object Object]

References

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

comp2Surv for weights Calls covMatSurv Called by compSurvfit

Examples

Run this code
data(tneBMT)
compNSurv(t=tneBMT$t,n=tneBMT$n,e=tneBMT$e,
 n1=as.matrix(tneBMT[,grep("n_",colnames(tneBMT))]),
 e1=as.matrix(tneBMT[,grep("e_",colnames(tneBMT))]),
 FHp=1,FHq=1)

Run the code above in your browser using DataLab