powered by
A utility function to calculate the weighted log-rank statistics and their varainces given the weights
wlrcal(n=10,te=c(1,2,3),tfix=2.0,dd1=c(1,0,1),dd0=c(0,1,0),r1=c(1,2,3),r0=c(1,2,3), weights=matrix(1,nrow=length(te),ncol=1),eps=1.0e-08)
unscaled test statistics
variances of the unsclaed test statistics
weighted log-rank statistics, i.e. scaled test statsitics
the correlation matrix of the weighted log-rank statistics
total number of subjects in the study
(ascendingly) ordered unique event times from both groups
time point where weighted log-rank is calcualted
number of events from treatment group at each te
te
number of events from control group at each te
number of at-risk subjects from treatment group at each te
number of at-risk subjects from control group at each te
user specified weights, each column is a set of weights at each te
tolerence when comparing event times
Xiaodong Luo
More details
lr<-wlrcal(n=10,te=c(1,2,3),tfix=2.0,dd1=c(1,0,1),dd0=c(0,1,0),r1=c(1,2,3),r0=c(1,2,3)) lr
Run the code above in your browser using DataLab