Questions tagged [logrank-test]

65 questions
11
votes
4 answers

How best to analyze length of stay data in a hospital-based RCT?

I am interested in knowing whether or not there is a consensus about the optimal way to analyze hospital length of stay (LOS) data from a RCT. This is typically a very right-skewed distribution, whereby most patients are discharged within a few days…
pmgjones
  • 5,543
  • 8
  • 36
  • 36
8
votes
1 answer

Difference between survdiff log-rank and coxph log-rank

I'm using the survival package in R to analyze clinical data. I am analyzing two different groups of patients, when I calculate survdiff in order to compare the curves, I got p= 0.135, but when I adjust the model using coxph and different…
ToniG
  • 125
  • 1
  • 1
  • 7
6
votes
2 answers

Which algorithm to compute p-value of logrank test with three or more groups is best?

There seem to be two different algorithms for comparing three or more survival curves using the logrank test. Algorithm A. Found in books by Altman and Machin. Computed by GraphPad Prism. This method uses an algorithm that is easy to understand,…
Harvey Motulsky
  • 14,903
  • 11
  • 51
  • 98
6
votes
2 answers

How should I deal with the consequences of proportional hazards violations in log-rank (and related) tests?

I have (censored) time-to event data for subjects in four groups. I would like to do something like a logrank test, but the survival curves do not satisfy the proportional hazards assumption. I think I have heard that the consequence of a prop.…
Jesse
  • 73
  • 1
  • 4
6
votes
2 answers

Log-rank / Cox analysis with very unequal sized groups: alternative calculations of p-value?

I would like to set up a series of tests on the difference in survival between two very unequal sized groups. Generally either log-rank (using the R survdiff function) or a cox regression (R coxph) with stratified patient variables works well. …
Knackiedoo
  • 232
  • 2
  • 5
6
votes
2 answers

log-rank test in R

I need to use the survdiff function to statistically compare (using log-rank test) the following survival functions: (1) Male (Sex=1) and Female (Sex=2) (2) Patients <= 65 years-old and Patients > 65 years-old I used the following command Male <-…
SAMA
  • 71
  • 1
  • 1
  • 2
5
votes
1 answer

In which situation does the log-rank test have low power?

This question is complementary to question 1 asked by @Jesse here. It is about the case when we don't find a significant result when performing the log-rank test and when the proportional hazard assumption does not hold. In his/her answer to Jesse,…
5
votes
2 answers

Logrank test for trend (proportional hazards)

How one can create a logrank test for trend and does it differ from normal logrank test? Any suggestions or literature? Maybe some R examples and functions?
Marcin Kosiński
  • 819
  • 3
  • 12
  • 25
4
votes
1 answer

Sample size / power calculation for logrank survival test

I have really little idea of survival analysis. I am aware that logrank is a special case of Cox' proportional hazards model, and that tons of R packages and scripts address the problem of power / size calculations. However, I didn't manage to make…
January
  • 6,999
  • 1
  • 32
  • 55
4
votes
1 answer

How to calculate log-rank test statistic

Depending on which statistics text you read you will get 2 different formulations of the log-rank test statistic. In some texts you will see it specified as: $$ \frac{(O-E)^2}{E} $$ Example 1 Whilst in others you will see it…
gowerc
  • 572
  • 3
  • 12
4
votes
1 answer

Is there a repeated measures aware version of the logrank test?

I am looking for a repeated measures version of the Logrank test. If I am correct, I am looking for an equivalent of the Friedman test for survival data. Any suggestions on where to look? (and R code will always be welcomed :) ) Thanks.
Tal Galili
  • 19,935
  • 32
  • 133
  • 195
3
votes
1 answer

Validity of Log-rank p-value when there are zero events in one group?

I am looking to do a Kaplan Meier analysis to look at survival in two groups. I have 21 people in group A and 17 people in group B. 5 people in group B died at various times, 0 people in group A died, ie all my data is censored for Group A. I am…
Dr. K
  • 61
  • 1
  • 4
3
votes
1 answer

Which test should be used to compare crude mortality between 15 groups?

I have fifteen groups (factor levels) and I need to compare their crude mortality. Is Logrank test limited to two groups only? Which test would be correct to use in this case?
st4co4
  • 1,499
  • 5
  • 10
3
votes
1 answer

The logrank test statistic is equivalent to the score of a Cox regression. Is there an advantage of using a logrank test over a Cox regression?

I have understood the logrank test as a "safe" or "conservative" way to check for a difference between two survival curves. It is "safe" in the sense that it is a nonparametric test of $h_1(t) = h_2(t)$, where $h_i( \cdot)$ is the hazard function of…
Eli
  • 1,682
  • 10
  • 24
3
votes
2 answers

Combining several survival experiments

In four independent experiments, two strains (A and B) were compared in their respective survival curves. Two experiments show a clear-cut result (A survives at 100%, almost half B dies). Two further experiments show no significance (log-rank /…
January
  • 6,999
  • 1
  • 32
  • 55
1
2 3 4 5