66e0f12fc55cfe72e92fee45703b08ea0775ae2a
Steam review-label threshold test
Code for the empirical part of the paper on Steam review labels ("Mostly Positive", "Very Positive", etc.). It tests whether a game's daily number of new reviews jumps when its score crosses a label cutoff. Daily new reviews are used as a proxy for purchases, since only owners can review.
The scripts were written with help from LLMs. Check the code and results before reusing them.
Pipeline
| Script | What it does |
|---|---|
parr_download.py |
Downloads the full list of reviews for each game and aggregates them into daily positive and negative counts (data/<id>.csv). |
download_metdadata.py |
Download the metadata of ids, in the data/ folder pulling all the ids : (data/<id>.csv) |
game_test.py |
Runs the cutoff tests from the paper to see whether the score label itself has a significant effect on daily new reviews. |
Run them in this order: steam_scan, then parr_download, then game_test.
Inputs
game_tags.csv: one row per game, with columns:sheet: game idgenres: genres separated by;group:sp,mporbothprice: current base price (blank orNAif none)
data/<id>.csv: one file per game, with columnsdate,positive,negative. Each file should start at the game's release date, since game age is measured from the first row.
What game_test does
- Sample: games with a real-game genre (Action, Indie, RPG and so on), at least 2,000 reviews in total, and between 1 and 8 years of data. A game-day is used only once the game has 500+ reviews.
- Main model: a regression discontinuity on game-days within a window of the cutoff (default ±2 percentage points; ±1 and ±3 as robustness). It includes separate slopes on each side of the cutoff, month and release-year fixed effects, and controls for age, review count and price. Standard errors are clustered by game, with wild cluster bootstrap p-values.
- Cutoffs tested: 70%, 80% and 95%, stacked in one regression. The 20% and 40% cutoffs have too few games nearby.
- Groups: single-player (
sp), multiplayer-only (mp), both, and all games pooled. - Placebo cutoffs: 60%, 75%, 85% and 90%, where no label changes. Used to check that any jump is not just general drift with score.
- Difference-in-discontinuities: the jump at real cutoffs minus the jump at placebo cutoffs, in one regression.
- Triple difference (
D x real x MP): tests whether the label effect differs between multiplayer-only and single-player games (H2). - Robustness spec ("crossers"): only games that cross a cutoff inside the window, with game-by-cutoff fixed effects.
Install
pip install pandas numpy pyfixest
Output
Results are saved as CSV files, for example ell_by_group.csv, ell_did.csv and ell_triple.csv.
est: the jump inln(1 + new reviews)at the cutoffpct: the same effect as a percentage changep_cluster: p-value with game-clustered standard errorsp_boot: wild cluster bootstrap p-value (unreliable where it is exactly0.0; usep_clusterthere)
Limitations
- Review counts are an indirect proxy for purchases.
- Steam's own visibility algorithm responds to sales and playtime, which also drive reviews, and it cannot be observed. The estimates are indicative, not causal.
- Multiplayer-only games have few observations near each cutoff, so those estimates are imprecise.
- The Steam label thresholds are inferred from the labels shown in the store. Valve has not published them, apart from the 40% "Mixed" line.
Languages
Python
100%