2
$\begingroup$

I'm running a survival analysis on a sample of 26 patients, divided into 2 groups according to certain variables and different times ( because there is censored data). I couldn't perform the log-rank test because of the small sample size, so I'm thinking of performing a Fisher's exact test.

What should be the best test to handle the small sample size?

$\endgroup$
2
  • 1
    $\begingroup$ It is not a good strategy to try out different methods and pick the first that doesn't produce an error. This is not good clinical practice. First create a statistical analysis plan. Then look at the data. And then perform the analysis according to the plan. $\endgroup$
    – Michael M
    Commented Dec 18, 2022 at 22:15
  • $\begingroup$ Thank you for your advice, I honestly appreciate it, I'm not a statistician, and I don't want to p-hack, I want to find a validated test that can serve my study. $\endgroup$
    – Soffee
    Commented Dec 18, 2022 at 22:33

2 Answers 2

7
$\begingroup$

If you have censoring in your times to events then a Fisher test might not properly take the censoring into account. See this page for the importance of taking censoring into account.

A Fisher test, chi-square test, or other test of binomial event/no-event status might be OK if you have complete data on all individuals up to some particular follow-up time and restrict evaluation to a follow-up time for which you have complete data. It seems unlikely, however, that such a test would be more helpful than your attempt at a log-rank test, as both depend fundamentally on the numbers of events in each group. The reason is that you can think of the log-rank test as an extension of the chi-square test.

In the simple chi-square test you have in mind, the observed numbers of "events/non-events" in each group at some point in time would be compared against the expected numbers if the two groups had the same proportion of events/non-events. The log-rank test extends that over time, with the expected numbers of events at each event time being those if the two groups had the same survival function over time, thus accounting for censoring. You then combine results over all event times in the data to get a chi-square statistic based on the overall "observed" and "expected" numbers of events in each group. It's the number of events, not total sample size, that matters the most for either test.

See the review by Leung et al on "Censoring Issues in Survival Analysis," Annu Rev Public Health 18:83–104 (1997), for more detail about why you need to incorporate censoring into your analysis.

$\endgroup$
0
7
$\begingroup$

The log-rank test does not require large samples: we can get an exact test by simply doing a permutations test on the log-rank statistic itself.

For an implementation in R, here is one example. This particular example is for interval censored data, which is a more general form of censoring than right censored, so can be applied to data that is only right censored. For simplicity there may be an implementation for right-censored only data somewhere.

$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.