← Latest papers
📊 statistics

Living forwards or understanding backwards? A comparison of Inverse Probability of Treatment Weighting and G-estimation methods for targeting hypothetical full adherence estimands in longitudinal cohort studies

This paper compares Inverse Probability of Treatment Weighting (IPTW) and G-estimation methods for estimating the causal effect of full medication adherence versus non-adherence on health outcomes in longitudinal observational studies, evaluating their statistical properties through simulations and demonstrating their application using UK Biobank data on statin adherence.

Original authors: Xiaoran Liang, Deniz Türkmen, Jane A H Masoli, Luke C Pilling, Jack Bowden

Published 2026-03-10
📖 6 min read🧠 Deep dive

Original authors: Xiaoran Liang, Deniz Türkmen, Jane A H Masoli, Luke C Pilling, Jack Bowden

Original paper licensed under CC BY 4.0 (http://creativecommons.org/licenses/by/4.0/). This is an AI-generated explanation of the paper below. It is not written or endorsed by the authors. For technical accuracy, refer to the original paper. Read full disclaimer

Imagine you are trying to figure out how much taking your medicine every single day actually improves your health. This is a classic problem in medicine: we know people should take their pills, but in real life, many forget, skip doses, or stop taking them entirely.

The problem is that people who forget their medicine often have other things going on in their lives (like being sicker, having less money, or being more stressed) that also make them less healthy. If you just look at the data, it's hard to tell if they are sick because they didn't take the pill, or if they didn't take the pill because they were already sick.

This paper is about two different ways to solve this puzzle using computer models to separate the "medicine effect" from the "sick-life effect." The authors call these methods IPTW and G-estimation.

Here is the breakdown using simple analogies:

The Core Problem: The "Time-Traveling" Confusion

Imagine you are watching a movie where the hero's health changes every week.

  • Week 1: The hero takes his medicine.
  • Week 2: He feels better, so he goes to the gym.
  • Week 3: Because he went to the gym, he takes his medicine even more regularly.

The problem is: Did he feel better in Week 3 because of the medicine in Week 1, or because of the gym in Week 2? And did the gym happen because of the medicine? It's a tangled web of cause and effect that changes over time.

The Two Methods: "Living Forwards" vs. "Understanding Backwards"

The authors use a famous quote by the philosopher Kierkegaard: "Life must be lived forwards, but understood backwards." They use this to describe their two methods.

1. IPTW (Inverse Probability of Treatment Weighting) = "Living Forwards"

The Analogy: Imagine a crowded room where some people are taking medicine and some aren't. The people taking medicine look different (maybe they are richer or healthier to begin with).

  • How it works: IPTW acts like a magical scale. It looks at every person in the room and gives them a "weight."
    • If a person is very likely to take medicine (because they are rich/healthy) but didn't, the scale makes them count for 10 people.
    • If a person is unlikely to take medicine but did, the scale makes them count for 10 people.
  • The Goal: By the end, the "weighted" room looks like a perfectly balanced experiment where taking the medicine was random. It tries to create a fake "perfect world" where everyone is equal, moving from the start of the study to the end.
  • The Flaw: If the rules of the room are too strict (e.g., only very healthy people can take the medicine), the scale has to give some people a weight of "1,000,000" to balance the room. This makes the math unstable and prone to crashing.

2. G-estimation = "Understanding Backwards"

The Analogy: Imagine you are watching the movie of the hero's life, but you are watching it in reverse.

  • How it works: You start at the end (Week 3) and ask, "How much of this health was caused by the medicine taken right now?" You calculate that effect and subtract it from the hero's health record. You call this "blipping down" the outcome.
  • Then you move to Week 2. You ask, "Now that we've removed the effect of Week 3, how much of the remaining health was caused by Week 2's medicine?" You subtract that too.
  • The Goal: You keep peeling away the layers of the onion, working backward from the end to the beginning, isolating the specific contribution of the medicine at each step.
  • The Advantage: It doesn't need to create a giant, unstable scale. It just mathematically removes the "noise" step-by-step. The paper finds this method is usually more stable and accurate, especially when the data is messy.

The "Secret Weapon": Instrumental Variables (IV)

Sometimes, even the best methods fail because there are hidden factors we can't measure (like a secret genetic trait that makes people lazy and sick).

  • The Analogy: Imagine you want to know if rain makes grass wet, but you suspect the grass is also wet because of a hidden sprinkler.
  • The Solution: You look for a "Secret Signal" (Instrument) that only causes the rain but has nothing to do with the sprinkler. In this study, they used genetics (DNA) as the signal. Some people have genes that make statin drugs work better, so they naturally take them more. Since your DNA is fixed at birth, it can't be changed by your current sickness.
  • The Catch: In their real-world test with 13,000 people, the "genetic signal" was very weak. It was like trying to hear a whisper in a hurricane. The method worked in theory, but the results were too fuzzy to be precise.

What Did They Find? (The Real-World Test)

They applied these methods to 13,000 people taking statins (cholesterol medicine) in the UK. They wanted to know: "If everyone took 100% of their pills, how much lower would their cholesterol be compared to taking 0%?"

  1. The Result: Both methods agreed that taking the medicine helps a lot.
    • IPTW said: "Full adherence lowers cholesterol by about 15–20%."
    • G-estimation said: "Full adherence lowers cholesterol by about 15–20%."
    • They matched up well!
  2. The Timing: They found that recent adherence matters most. Taking your pill today has a bigger impact on your cholesterol today than taking it three years ago.
  3. The Winner: While both worked, G-estimation was more reliable. When the data got messy (like when sick people stopped taking pills), IPTW started to wobble and give weird answers, while G-estimation stayed steady.

The Bottom Line

If you are a doctor or a researcher trying to figure out if a drug works in the real world:

  • IPTW is like trying to balance a scale; it's easy to understand but can tip over if the data is messy.
  • G-estimation is like peeling an onion backwards; it's a bit more complex to set up, but it's much tougher and gives you a clearer picture of the truth.

The paper suggests that for long-term studies with continuous data (like daily pill counts), G-estimation is the better tool to use, provided you have the right software to run it.

Drowning in papers in your field?

Get daily digests of the most novel papers matching your research keywords — with technical summaries, in your language.

Try Digest →