# Design: did paid engagement with prescribers move prescribing?

> Public copy. Changed from the committed original in three ways only: the drug class, its uses and the details that would narrow it are replaced with [withheld]; one sentence carries a bracketed [public note]; and this note was added. The original is kept privately. It was committed before the payment and prescribing files were opened or filtered (two unopened byte-range test fetches excepted); the page's method section lists what was read before it.

Written and committed before any data was collected or any outcome computed [public note: except the pre-design reads listed in the page's method section]. Anything settled after an outcome was
read is listed on the page under "Added later, and why" and never changes a rule declared here. The machine-readable
copy of every parameter is `plan/protocol.json`.

## Question

A drug maker pays prescribers for meals, talks, consulting and travel, and the same prescribers write its drug more
often. Did the engagement move the prescribing, or did the maker engage the prescribers who already wrote the drug?
On real public data:

1. How strongly does receiving a maker's general payments for a drug go with prescribing that drug, before any
   adjustment?
2. How much of that survives adjustment for specialty, region, prescribing volume and the prescriber's own
   prior-year prescribing, by regression and by matching? Raw and adjusted figures sit side by side, with intervals.
3. Comparing prescribers first engaged in the later year with prescribers never engaged, how did their prescribing
   change, and were the two groups already moving apart the year before the engagement started?
4. What public data cannot establish, in plain words.
5. The randomized test that would settle it: a holdout of prescribers from an engagement program, sized so that it
   makes the wrong call at most 20% of the time each way, with prescribers grouped in practices.

## Data: real public files, nothing named

- **Payments:** CMS Open Payments, General Payment Data, program years 2022 and 2023, from the official download
  (`download.cms.gov/openpayments`), the latest refresh of each program year. General payments only
  (not research payments, not ownership). A payment counts for a drug when any of its five product name fields names
  one of that drug's products.
- **Prescribing:** CMS Medicare Part D Prescribers by Provider and Drug, data years 2021, 2022 and 2023, from the
  official files on data.cms.gov. Claims (`Tot_Clms`) per prescriber and product.
- **Join:** the prescriber's National Provider Identifier, present in both files.
- **Class:** one therapeutic class, [withheld]. Two of its molecules, from two different makers, [withheld]; they are **Drug A** and
  **Drug B** on every public surface. Drug A is the one with more payment rows naming it in program year 2023. Each
  drug's family is every product containing its molecule, single or combined. The class is every Part D product
  containing any molecule of the class.
- **Held back:** the product and molecule names that define the two families and the class live only in a private
  file. Every public file names neither drug, nor any maker, brand, product or prescriber, and carries no
  prescriber identifier and no prescriber-level row. Raw files are never committed.

## Population

Prescribers (one National Provider Identifier each) with Part D claims for the class in each of 2021, 2022 and 2023,
in one of the 50 states or the District of Columbia. Prescribers who enter or leave the class during the three years are
outside the population; their count is reported. Part D lists a product for a prescriber only when it has 11 or more
claims, so a product with 1 to 10 claims reads as 0; the class total is the sum of the listed products.

## Measures

- **Share** of a drug in a year: the prescriber's claims for the drug's family over the prescriber's claims for the
  class, in percentage points. The primary outcome.
- **Engaged** for a drug in a program year: at least one general payment naming one of the drug's products. Counts,
  amounts and the nature of payment (food and beverage, speaking, consulting, travel, education, other) are kept for
  description and for the dose check.
- **Specialty:** Part D's prescriber type in 2022, grouped into the types with at least 500 prescribers in the
  population; the rest form "other".
- **Region:** the nine Census divisions, from the prescriber's state.
- **Volume:** class claims in 2022, in fifths of the population (regression uses its logarithm).
- **Prior share:** the drug's share in 2022 (and in 2021 for the placebo).

## Groups, per drug

- **Newly engaged:** engaged in 2023, not in 2022.
- **Never engaged:** engaged in neither year.
- **Kept engaged:** engaged in both years (described, and part of the cross-section in question 1 and 2).
- **Dropped:** engaged in 2022, not in 2023 (described only).

## Estimates

1. **Raw:** mean 2023 share among prescribers engaged in 2023 minus the mean among those not engaged in 2023, all
   prescribers in the population.
2. **Adjusted by regression:** least squares of the 2023 share on engaged in 2023, the 2022 share, the logarithm of 2022
   class claims, specialty and division indicators. Heteroskedasticity-robust (HC1) 95% interval.
3. **Adjusted by matching:** coarsened exact matching of engaged and not engaged prescribers in 2023 on specialty,
   division, volume fifth and 2022 share band (0, then tenths: above 0 to 10, 10 to 20, and so on up to 100). The
   effect on the engaged, weighted by the engaged in each stratum; strata without both kinds are dropped and counted.
   Interval: 95% percentile bootstrap over prescribers, 1,000 draws, seed 20231.
4. **New engagement (difference in differences):** the newly engaged against the never engaged, outcome the change in
   share from 2022 to 2023, matched on the same four 2022 strata. Same bootstrap.
5. **Placebo year:** the same two groups, the same matching, outcome the change in share from 2021 to 2022, a year in
   which neither group was paid for the drug. A real effect of the 2023 engagement cannot show up in it; targeting of
   prescribers who were already moving toward the drug can.
6. **Dose:** the new-engagement estimate within the newly engaged by number of payments in 2023 (1, 2 to 4, 5 or more),
   each against its matched never engaged.
7. **The other drug:** the new-engagement estimate for Drug A's engagement on Drug B's share, and the reverse; a
   payment that moves prescribing toward one drug would show up partly as a loss for the other.
8. **Checks:** the bootstrap clustered by state as a second interval for estimate 4; the regression and matching
   rerun with the population limited to prescribers with 50 or more class claims in each year (where the 11-claim
   floor matters least).

All estimates are reported for Drug A and Drug B separately, never pooled.

## Predictions (written before any outcome)

- **P1:** the raw gap is large for both drugs, at least 10 points of share.
- **P2:** adjustment for the prior-year share and the rest removes more than half of the raw gap, by regression and by
  matching, for both drugs.
- **P3:** the new-engagement estimate is positive and small, between 0 and 4 points, with an interval above zero, for
  both drugs.
- **P4:** the placebo year is positive for both drugs (the makers engage prescribers already moving toward the drug),
  but smaller than the new-engagement estimate.
- **P5:** the dose bands rise with the number of payments.
- **P6:** engagement for one drug goes with a fall in the other drug's share, smaller in size than the gain.

## How the page reads the estimates (fixed now)

- If the placebo year's interval sits above zero, the new-engagement estimate is reported as what the data allows
  "if the groups had kept moving apart at the earlier pace", which is the new-engagement estimate minus the placebo
  estimate, beside the plain one, and the page says that the two groups were already moving apart.
- If the placebo year's interval includes zero, the page says the two groups were not moving apart before, which
  supports but does not prove that the later gap came from the engagement.
- No sentence says payments cause prescribing. The page says what the comparison shows under its assumptions and
  what it cannot rule out: who was chosen for engagement and why, prescribing that moves the engagement rather than
  the reverse, engagement without a payment (visits by a representative, samples), and prescribing outside Medicare
  Part D.

## Small cells and privacy

Every published figure is an aggregate over at least 11 prescribers, as CMS itself suppresses smaller cells; a cell
with fewer reads "fewer than 11" and its value is not published. The rule is enforced in code with a test. No public
file carries a prescriber identifier, a name, an address, a prescriber-level row, a drug, brand, product or maker name.

## The randomized test

A prescriber-level holdout of an engagement program, sized with the method of the retargeting holdout study:

- **Decision, written first:** keep the program if the test's estimated lift in the drug's share is at least 1 point
  (an assumed smallest lift worth the program's cost), cut it otherwise.
- **Effects planned for:** 0 (does nothing) and 2 points (works). The test may be wrong at most 20% of the time at
  each.
- **Unit and analysis:** practices are randomized, half to the program and half held out; the outcome is each
  prescriber's change in share over one year (the public data is annual), compared between arms.
- **Variance:** taken from the data, by drawing prescribers' real 2022 to 2023 changes in the never engaged group of
  each drug. Practices are not in the public files, so practice size (1, 3 and 6 prescribers) and the correlation of
  prescribers within a practice (0, 0.05, 0.1, 0.2) are assumptions and are swept.
- **Size:** the smallest number of prescribers per arm, from a grid, whose normal-approximation error rate meets the
  20% bar each way; then 2,000 simulated trials per setting check the error rates actually reached.

## Reproduction and tests

Code runs on Python 3.12 with numpy and pandas. Collection writes filtered, prescriber-level work files outside the
repository; the analysis writes aggregate results only. Tests: the small-cell rule with a planted cell of 10, the
estimators on a constructed table with a known effect, a replay that rebuilds the page from the committed results and
compares bytes, and a number check that every number on the page comes from the results.
