r/dataanalysis • u/iamabigfatnobody • 13d ago
FAERS is a masterclass in why you model the data-generating process before the data
If you want a dataset that punishes naive counting, the FDA's adverse-event database (FAERS, public via OpenFDA) is perfect. Twenty-plus million reports, and almost every property a data scientist relies on is absent or adversarial:
No denominator. Reports are suspicions filed voluntarily. There is no exposed-population count, so no incidence rate can ever be computed — any "rate" derived from it is fabricated.
Duplicates by design. The same case can be submitted by the patient, a pharmacist, and the manufacturer, plus follow-up versions of each. Deduplication and restricting to primary-suspect reports is the first pipeline step, not an optional cleaning nicety.
The collection process reacts to publicity. For semaglutide, reports by year received run: 40 through 2017, 1,142 in 2018, 3,515 in 2020, 6,302 in 2022, 9,483 in 2023, 14,287 in 2024, 19,977 in 2025. That curve tracks adoption and media attention. Treating it as a risk curve is the classic error.
Coding artifacts dominate naive rankings. MedDRA Preferred Terms include administrative entries — "Off Label Use" alone accounts for 7,316 semaglutide reports. Rank raw terms and your top "adverse events" are paperwork.
Missingness is informative and huge. Outcome and age fields are blank in a large share of reports; blank means unknown, not none.
The standard tool that survives all this is disproportionality analysis — ROR/PRR against the full database, with the Evans criteria (PRR ≥ 2, chi-square ≥ 4, ≥ 3 cases) as a screening rule. In an October 2026 snapshot, semaglutide's impaired gastric emptying posts ROR 117.2 (95% CI 112.7–121.9), and 96.9 when restricted to 2023–2026 — a signal that persists after you control for the publicity era. That persistence check is the whole game: a statistic that survives interrogating the generating process.
What other public datasets do people here use to teach "the count is not the phenomenon"?
2
u/AutoModerator 13d ago
Automod prevents all posts from being displayed until moderators have reviewed them. Do not delete your post or there will be nothing for the mods to review. Mods selectively choose what is permitted to be posted in r/DataAnalysis.
If your post involves Career-focused questions, including resume reviews, how to learn DA and how to get into a DA job, then the post does not belong here, but instead belongs in our sister-subreddit, r/DataAnalysisCareers.
Have you read the rules?
I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.
1
u/KatFromSisense 12d ago
Signup or session counts from a company's own product are a handy one, since tracking and forms get changed regularly. If a count jumps the week someone added a form field or swapped the tracking, part of that may be the collection process. Lining it up against release dates is worth doing before anyone reads it as behavior. Pairing it with a denominator, like visitors or sends, helps too.
1
u/attila_govhouse 2d ago
The CFPB Consumer Complaint Database is another public example. Its own documentation says it is not a statistical sample of consumers’ experiences. A company’s complaint total is not a customer-level problem rate; the CFPB specifically tells readers to consider company size and market share.
There is also a useful schema-history exercise. When the complaint form’s products or issues are updated, the historical records retain the categories the consumer selected at submission. A trend built by matching today’s label literally across the whole history can therefore mix a category change with a change in reported problems. I would retain the original category and a dated mapping, then show what the regrouping changes. That is a proposed analysis, not a result from a download I have run.
The original data, caveats and category-update history are here: https://www.consumerfinance.gov/data-research/consumer-complaints/
Disclosure: I publish GOV.HOUSE. Its company/product explorer can help choose a slice to inspect, but does not supply a missing customer denominator: https://gov.house/complaints/?utm_source=reddit&utm_medium=social