Intended for healthcare professionals

CCBYNC Open access

Effect of statin treatment on short term mortality after pneumonia episode: cohort study

BMJ 2011; 342 doi: (Published 06 April 2011) Cite this as: BMJ 2011;342:d1642
  1. Ian Douglas, lecturer in epidemiology,
  2. Stephen Evans, professor of pharmacoepidemiology,
  3. Liam Smeeth, professor of clinical epidemiology
  1. 1Faculty of Epidemiology and Population Health, London School of Hygiene and Tropical Medicine, London WC1E 7HT, UK
  1. Correspondence to: I Douglas ian.douglas{at}
  • Accepted 21 February 2011


Objective To determine whether statins protect against all cause mortality after a diagnosis of pneumonia.

Design Cohort study using propensity score based method to control for differences between people prescribed and not prescribed statins.

Setting United Kingdom Health Improvement Network database, which contains electronic primary care medical records of more than six million patients.

Participants Every patient starting a statin between 1995 and 2006 (129 288) matched with up to five non-statin users (n=600 241); 9073 patients had a recorded diagnosis of pneumonia, of whom 1398 were using a statin.

Main outcome measure All cause mortality within six months of diagnosis of pneumonia.

Results Among users and non-users of statins with comparable propensity scores, 95/942 users and 686/3615 non-users died on the day that pneumonia was diagnosed. In the following six month period, 109/847 statin users died compared with 578/2927 non-users, giving an adjusted hazard ratio of 0.67 (0.49 to 0.91). If these observed benefits translated into clinical practice, 15 patients would need to be treated with a statin for six months after pneumonia to prevent one death.

Conclusions Compared with people who were not taking statins, the risk of dying in the six month period after pneumonia was substantially lower among people who were already established on long term statin treatment when the pneumonia occurred. Whether some or all of this protective effect would be obtained if statin treatment begins when a patient first develops pneumonia is not known. However, given that statins are cheap, safe, and well tolerated, a clinical trial in which people with pneumonia are randomised to a short period of statin treatment is warranted.


Statins inhibit hydroxymethyl glutaryl coenzyme A reductase, which means that they lower blood cholesterol concentrations and hence reduce the risk of ischaemic cardiac events.1 2 Over the past decade, much has been claimed about the possible wide ranging effects of statins.3 Although the pharmacology of statins theoretically supports a wide range of actions, many benefits seen in observational studies are possibly due to indication bias and evidence for them has been inconsistent.4 5

A recent systematic review highlighted a possible role for statins in the treatment and prevention of infections.6 The results of nine studies of statin treatment for a range of mostly bacterial infections were pooled, and a protective effect was found against various outcomes including sepsis and mortality, with an odds ratio of 0.55 (95% confidence interval 0.36 to 0.83). This would suggest that patients receiving statins have less severe outcomes after infection.

We previously reported findings from a large cohort study comparing users and non-users of statins for a range of outcomes.4 We validated our study design by comparing the effects on mortality and cardiovascular events seen in our cohort compared with the effects seen in large randomised trials. The cardiovascular effect sizes were remarkably similar, suggesting that we had succeeded in overcoming the selection bias and confounding that is a common problem in observational studies of effects of drugs. In our previous study, we reported a possible reduction in the incidence of pneumonia among people receiving statins (hazard ratio 0.84; 99% confidence interval 0.74 to 0.95). In practice, statins would be unlikely to be given widely to prevent infections because of the very large numbers of people who would need long term treatment to prevent incident disease. However, statins may have a more useful role during acute infections, with the aim of lessening severity. We therefore investigated the effect of statins on mortality after an episode of pneumonia.


The Health Improvement Network

The Health Improvement Network (THIN) is a database of computerised medical records of general practices in the United Kingdom. It includes diagnostic and prescribing information, as well as information on various lifestyle characteristics for more than six million patients from more than 300 general practices. Patients are representative of the general UK population; rates of pregnancy, consultation, drug prescribing, and death are similar to national figures,7 and the database has been validated for pharmacoepidemiological research.8


The methods used to assemble the cohort for this study have been described in detail elsewhere.4 Briefly, all patients aged over 40 years registered in THIN between January 1995 and December 2006 were eligible for inclusion. We included in the study all patients who received their first prescription for a statin on or after 1 January 1995 and had at least 12 months’ previous continuous registration in THIN. We termed the date of first statin prescription the index date. We matched up to five non-statin users to each statin user on sex and age within 5 years. Non-users had to be registered at the same practice as their matched user on the index date, with at least 12 months’ previous continuous registration. Non-users had to have no record of a prescription for a statin before the index date but could be prescribed a statin later. This approach avoids selecting a biased control group who were not at risk of being prescribed a statin. We required both users and non-users of statins to have had some form of contact with their practice within six months before or after the index date to ensure that all participants were active patients.


Propensity score

A propensity score is a measure of the probability that a patient will be prescribed a certain drug, in this case a statin, based on the distribution of perceived risk factors for use among participants who have used and not used statins. Propensity scores are useful in observational studies, as they allow the researcher to determine whether groups of users and non-users are truly comparable, and the score can then be used as a way of handling confounding.9 We calculated propensity scores for all patients, regardless of whether they subsequently developed pneumonia, by using conditional logistic regression with use of statin at the index date as the outcome. Factors included in the model were those likely to influence the decision to prescribe a statin and included observation time in THIN; body mass index; socioeconomic status; consultation rate; prescribing rate; smoking status; drinking habits; diabetes; coronary heart disease; cerebrovascular disease; peripheral vascular disease; other atheroma; other circulatory disease; dementia; cancer; atrial fibrillation; heart failure; recent hepatic disease; recent renal disease; thyroid disease; hyperlipidaemia; hypertension; recent use of hormone replacement therapy, antipsychotics, antidepressants, steroids (oral or inhaled), fibrates, or cytochrome P450 3A4 inhibitors; and any previous use of non-statin or fibrate lipid lowering drugs, nitrates, aspirin, β blockers, calcium channel blockers, potassium channel activators, diuretics, positive inotropes, anticoagulants, antihypertensives, or other cardiovascular drugs. As a sensitivity analysis, we also calculated propensity scores restricted to the reduced cohort of patients who developed pneumonia.

Propensity scores can be used to adjust for confounding in several ways.9 10 Patients with similar scores can be matched individually, or the score can be adjusted for in regression analysis. Alternatively, analyses can be restricted to specific strata within the distribution of the score. Whichever approach is used, patients should be included in comparative analyses only if their score falls within the range common to both users and non-users, thus avoiding comparisons between patients with too many differences other than the exposure of interest. In addition, patients with scores in the extreme upper or lower tail of the distribution of scores should be excluded, as patients may be treated contrary to their score for important reasons, often missing to the researcher but related to health outcomes.10 Their inclusion can therefore lead to biased estimates. We examined the distribution of scores to ensure that only patients with scores in common regions of the distribution were included, and, as a minimum, excluded those with scores in the upper and lower 5% of the distribution from analyses. We also did a sensitivity analysis without this exclusion. From past experience, we anticipated that the distribution of scores would not allow efficient matching of users to non-users and would require adjustment for the score in regression analyses. We used likelihood ratio testing to determine whether the score should be treated as a continuous or categorical variable. We constructed 20 categories of 5% each for this purpose.


Two exposures were relevant for this study. Firstly, all patients included in the primary analysis had to have had an episode of incident pneumonia after the index date, as identified by patients’ medical records. For patients with more than one episode of pneumonia, we included only the first episode in the analysis. Secondly, we determined use of statin at the date when pneumonia was recorded. We considered patients who had received a prescription for a statin in the 60 day period before pneumonia to be users; we considered all others to be non-users.


The outcome of interest in this study was all cause mortality within six months of the incident episode of pneumonia. For patients with at least one episode of pneumonia after the index date, we ascertained death from patients’ medical records and defined the date of death as the earliest of any records indicating that death had occurred.

Modelling strategy

Firstly, we separated people who died on the day that pneumonia was diagnosed from those who died later. This is because pneumonia recorded on the date of death is likely to represent a contributing factor to the death rather than an incident diagnosis. Patterns of recording of cause of death are likely to be influenced by a patient’s known underlying comorbidities, so differences in the likelihood of pneumonia being cited as a cause of death between statin users and non-users are likely. For this reason, we did no formal analyses on data from patients who died on the date when pneumonia was recorded. For patients who died later or not at all, the recording of pneumonia is more likely to be truly incident; we did formal survival analysis for these patients.

We used Cox regression to model mortality in the six month period after an episode of pneumonia, excluding all patients who died on the day of diagnosis of pneumonia. Right censoring occurred at the earliest of six months after recording of pneumonia, death, or the end of the observation period (transfer out of practice or last data collection date).

We initially adjusted analyses for age in five year bands and sex. Fully adjusted analyses accounted for age, sex, propensity score, and year of index date. We produced a Kaplan-Meir survival curve to investigate how the risk of death changed over the six months after pneumonia, excluding deaths on the day of diagnosis. To illustrate the observed effect size, we calculated the number needed to treat (NNT) by using the equation NNT=1/(risk among non-statin users with pneumonia−risk among statin users with pneumonia). For comparison, we also used the same approach to model the effect of statin use on all cause mortality in all patients, regardless of pneumonia status, after the index date. We used Stata 11 for all analyses.


We matched 129 288 people who had received a statin to 600 241 people not prescribed a statin (the complete cohort). Smeeth et al give a detailed breakdown of patients’ characteristics among statin users and non-users.4 Table 1 shows background information in the entire cohort and in the patients with a diagnosis of pneumonia. Among these, 9121 people had an episode of incident pneumonia after the index date (date of first statin prescription in statin users). In 137 cases, death was recorded before pneumonia. Of these, 109 had a period of 35 days or shorter between recorded death and pneumonia, indicating that pneumonia may have been recorded as a possible cause of death. In these cases, we brought the date of pneumonia forward to the date of death. The remaining 28 cases had a longer time lag between recorded death and pneumonia, and we excluded them from further consideration owing to uncertainty about the accuracy of dating of events. For a further 23 patients, the recorded end of observation occurred before the record of pneumonia. In these patients, pneumonia was possibly a retrospective recording. Where the period between end of observation and pneumonia was 35 days or shorter, we changed the date of pneumonia to the end of observation (n=4). For longer periods, we excluded patients from further analyses owing to uncertainty about accuracy of dating (n=19). This left 9073 patients, of whom 1398 (15%) were receiving a statin at the time of diagnosis of pneumonia and 7675 were not receiving a statin. Table 1 also gives descriptive characteristics of the patients with pneumonia. Of note, 4869/9073 (54%) people with pneumonia were aged 70 years or older compared with 213 486/729 529 (29%) in the complete cohort. Patients with pneumonia were also more likely to have a history of atherosclerosis (2957/9073 (33%) v 131 965/729 529 (18%)) or heart failure (929/9073 (10%) v 19 497/729 529 (3%)).

Table 1

 Characteristics of study population at index date. Values are numbers (percentages)

View this table:

Very few patients who used statins had propensity scores in the lower eight 5% propensity score bands, as shown in table 2; further analysis therefore excluded patients with scores in these bands, in addition to the 20th band, to ensure that we drew comparisons only between patients with scores in the range seen in both users and non-users of statins. After this restriction, the cohort consisted of 942 statin users and 3615 non-users, of whom 204 users and 1264 non-users died within six months of the date pneumonia was recorded. Among these patients, 95 (10%) users and 686 (19%) non-users died on the day pneumonia was recorded. A further 109 (13%) of the 847 remaining users and 578/2927 (20%) non-users died later during the six month follow-up period and were entered in the survival analysis (table 3).

Table 2

 Distribution of propensity scores*

View this table:
Table 3

 Association between use of statin and mortality

View this table:

The rate ratio for mortality over six months, excluding deaths on the day of diagnosis of pneumonia, was 0.62 (99% confidence interval 0.47 to 0.81), adjusted for age and sex and comparing statin users with non-users. The fully adjusted rate ratio was 0.67 (0.49 to 0.87). The figure shows the crude Kaplan-Meier survival estimates for statin users and non-users, excluding deaths on the date of diagnosis of pneumonia. A sensitivity analysis using propensity scores calculated only among patients who developed pneumonia gave a fully adjusted rate ratio of 0.65 (0.49 to 0.87). By contrast, a comparison of patients who stopped taking a statin with those who never started taking one gave a fully adjusted rate ratio of 0.82 (0.50 to 1.36) for all further deaths in the next six months. This could reflect a loss of protective effect due to stopping statin treatment, although uncontrolled differences between groups may also have contributed to the null effect seen. A sensitivity analysis including patients with a score in the 20th 5% score band yielded a similar result to the primary analysis, with a hazard ratio of 0.72 (0.54 to 0.96). A sensitivity analysis stratified on propensity score did not suggest that the result was restricted to any particular region of the score distribution (see web appendix).


Kaplan-Meier survival estimates showing crude mortality estimates (with 95% confidence intervals) in six months after episode of pneumonia in statin users and non-users, excluding deaths on day of diagnosis

Considering mortality in the complete cohort, 4718/51 397 (9%) patients who were prescribed a statin at the index date died during follow-up compared with 32 445/308 730 (11%) not prescribed a statin, after restriction of analysis to patients within propensity score bands 9 to 19. The rate ratio for mortality, adjusted for age and sex, comparing statin users with non-users was 0.95 (0.91 to 0.99). The fully adjusted rate ratio was 0.82 (0.79 to 0.86).

Number needed to treat

If the estimated effect was seen in a randomised trial, the number needed to treat to prevent death within six months of an episode of pneumonia episode would be 1/((578/2927)−(109/847))=15.


Compared with people who were not taking statins, the risk of dying in the six month period after pneumonia was substantially lower among people who were already established on long term statin treatment when the pneumonia occurred, with a hazard ratio of 0.67 (99% confidence interval 0.49 to 0.91). The effect seen seems to be greater than the effect of statins on all cause mortality regardless of pneumonia status, which was 0.82 (0.79 to 0.86) in this cohort.

Strengths and limitations of study

A major strength of this study is the large cohort size; nearly 5000 episodes of pneumonia were included in the main analysis, and around 1000 of these were in patients prescribed statins. In observational studies of effects of drugs, a major problem is ensuring that confounding by indication has been dealt with so that the result is likely to represent an effect of the drug rather than fundamental differences between treated and untreated people. We were able to adjust for a large number of confounders by using propensity scores; this approach can successfully account for much confounding by indication. By examining the distribution of scores separately in the statin users and non-users, we were able to restrict our main analysis to people with a similar likelihood of receiving a statin. This is an advantage of propensity score methods compared with more traditional multivariate analysis, in which the comparability of users and non-users can be more difficult to determine.

As with all observational studies, we cannot be certain that the effects we observed are causally related to the use of statins. Although the possibility of residual confounding by indication and other biases can never be ruled out, we believe that when making observations among statin users and non-users, vascular events are likely to be subject to the most substantial confounding by indication. We have previously shown a protective effect against myocardial infarction and stroke in this dataset, similar to the effect detected in clinical trials.4 Moreover, for confounding by indication to explain these results people at higher risk of severe pneumonia would have to be preferentially not prescribed statins. Although people with immunocompromising illness may be treated less often for reduction of lipids, this could be expected to lead to a similar bias for mortality after influenza as well as pneumonia. We previously reported no benefit of statin treatment for complications or mortality after influenza; a point estimate of 0.84 suggested no extra benefit compared with the generally expected benefit of statins against mortality.4 This suggests that our approach may have successfully eliminated much confounding by indication, although obviously this is not absolutely certain.

For this study, we chose to consider deaths on the day of diagnosis of pneumonia separately from deaths that occurred later, as in these cases pneumonia may have been recorded only because it was given as a cause of death. We were concerned that pneumonia could be cited as a cause of death in a way that systematically differs between statin users and non-users. Recording of pneumonia as a cause of death has been problematic in the UK until very recently, when specific guidance was issued for certification of death.11

A degree of misclassification of exposure and outcome may have occurred in this study. General practitioners may not have recorded some episodes of pneumonia (for example, if a patient was admitted to hospital and died shortly after, without pneumonia being noted on the death certificate). Assuming that such misclassification was similar for statin users and non-users, this would be expected to lead to a reduction in power only. Alternatively, some patients could have been incorrectly diagnosed as having pneumonia, which would result in a bias towards the null. Bias could also be introduced if pneumonia was recorded differently among statin users and non-users. Unfortunately, we could not ascertain the completeness and validity of recording of pneumonia in this study.

Recording of mortality in THIN is comparable with UK-wide rates,7 but some deaths may not have been recorded. Again, this is unlikely to have differed according to statin use and would therefore be expected to bias any result towards the null. Finally, use of statins is of vital importance; the primary analysis allocated statin use as determined by prescription rather than consumption. Some patients do not take their drugs as prescribed, so, at the time pneumonia occurred, a small proportion of patients may be misclassified as statin users. However, more than 99% of patients taking statins had received two or more prescriptions for statins, and repeat prescribing is likely to represent genuine drug use in most cases. Misclassification of statin use is also unlikely to have differed according to mortality status, so we would expect the effect to be a bias towards the null. The observed protective effect of statins seemed to be much diminished or absent when we compared patients who stopped their statin with those who never started. Caution is needed in the interpretation of this result, however, as people who stop their statin may differ fundamentally from those who continue treatment, in ways that are directly related to underlying health.

Comparison with other studies

Observational studies in other populations have looked at the effect of statins in the treatment of pneumonia but have had limited power. Our results seem to be largely in keeping with those reported elsewhere. Four studies identified a protective effect when comparing statin users with non-users. Almog et al reported an odds ratio of 0.07 (0.01 to 0.51) for severe sepsis in patients with bacterial infections (50% of which were pneumonia), although the enormous magnitude of effect detected in this study suggests possible residual confounding.12 Frost et al found a hazard ratio of 0.61 (0.41 to 0.92) for mortality due to influenza/pneumonia, although what proportion of these cases were pneumonia is unclear.13 Mortensen et al reported an odds ratio of 0.48 (0.36 to 0.64) for mortality 30 days after pneumonia.14 Myles et al found a hazard ratio of 0.33 (0.19 to 0.58) for all cause mortality within 30 days of pneumonia.15 Of note, this study also used data from THIN but included only 12 fatal cases among statin users, compared with 216 in our study. In contrast, Majumdar et al found an odds ratio of 1.1 (0.76 to 1.6) for all cause mortality after admission to hospital for community acquired pneumonia.16 This study seems to be well conducted, and the investigators were able to account for many underlying factors likely to differ between statin users and non-users. The reasons for such differences in results are not clear.

Implications of findings

Our study was able to measure only the effect of statins as given before pneumonia developed; in many instances statin treatment had been ongoing for a long period of time. For these findings to be of direct clinical relevance, whether a short course of statin treatment started at the time of diagnosis of suspected pneumonia improves the chances of survival would need to be determined. A growing body of evidence shows that statins exert rapid effects; endothelial function and arterial flow improve within 24 hours of starting a statin,17 and inflammatory markers such as C reactive protein are reduced with three days.18

Our study was not designed to assess the mechanism of any observed protective effect. However, statins are known to affect the cell signalling pathways involved in immune and anti-inflammatory responses, which could lead to a reduction in severity of infection in some cases.19

Statins are safe,20 cheap, and an easy intervention in terms of delivery. Given the potential low number needed to treat to prevent a death suggested by this study, we believe that a strong case exists for randomised trials of statins in people with serious infection to determine if a simple and practical intervention at the point of diagnosis of pneumonia has a beneficial effect.21 22 A trial of around 3000 people randomised to a statin or placebo at the time of diagnosis of pneumonia would be needed to determine whether a short period of statin treatment could reduce mortality by 20% among people with suspected pneumonia. Such a trial would be able to look in detail at specific causes of death, which may further elucidate a possible mechanism for any beneficial effect.

What is already known on this topic

  • A recent systematic review highlighted a possible role for statins in the treatment and prevention of infections

  • Pneumonia is a common infection that often leads to serious morbidity or death

  • The widescale use of statins as a preventive measure is likely to be unfeasible, but their use in treating pneumonia could be a simple and inexpensive adjunct to current strategies

What this study adds

  • Established statin use seems to be associated with a substantial reduction in the risk of death shortly after an episode of pneumonia

  • Whether starting a statin at the time pneumonia is diagnosed carries similar benefit is not known

  • A randomised trial is warranted to establish whether these findings translate into clinical practice


Cite this as: BMJ 2011;342:d1642


  • We thank EPIC for supplying the data and all the general practices that participate in the THIN database.

  • Contributors: ID and LS were responsible for the conception and design of the study. ID had principal responsibility for analysis, drafting and revising the manuscript, and final approval. LS and SE contributed to the analysis and the drafting, revision, and final approval of the manuscript. All authors were responsible for interpretation of the data. ID is the guarantor.

  • Funding: During this work, ID was funded by grants from the Wellcome Trust and the Medical Research Council paid to the London School of Hygiene and Tropical Medicine. LS was funded by a grant from the Wellcome Trust. Sponsors played no role in the study design; the collection, analysis, and interpretation of data; the writing of the article; or the decision to submit it for publication

  • Competing interests: All authors have completed the Unified Competing Interest form at (available on request from the corresponding author) and declare that (1) they have no relationships with companies that might have an interest in the submitted work in the previous three years; (2) their spouses, partners, or children have no financial relationships that may be relevant to the submitted work; and (3) they have no non-financial interests that may be relevant to the submitted work.

  • Ethical approval: The South Thames Multi-centre Research Ethics Committee and the London School of Hygiene and Tropical Medicine Ethics Committee approved the study.

  • Data sharing: No additional data available.

This is an open-access article distributed under the terms of the Creative Commons Attribution Non-commercial License, which permits use, distribution, and reproduction in any medium, provided the original work is properly cited, the use is non commercial and is otherwise in compliance with the license. See: and


View Abstract