Update README.md

This commit is contained in:
2026-11-28 10:16:53 +00:00
parent f179658d30
commit 3c4ab07ceb
+54 -4
View File
@@ -1,7 +1,57 @@
These scripts are for the threshold test and were made with help from LLMs.
# Steam review-label threshold test
steam_scan: Requests Steam app metadata and checks whether each game has 500+ reviews and a score near the lower cutoffs of 20%, 40%, or 70%. These ranges are not well represented in the many existing lists of Steam game IDs.
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.
parr_download: Downloads the full list of reviews for each game and aggregates them into daily positive and negative counts.
The scripts were written with help from LLMs. Check the code and results before reusing them.
game_test: Tests the cutoff values from the paper to see whether the score label itself causes any significant effect.
## Pipeline
| Script | What it does |
|---|---|
| `steam_scan.py` | Requests Steam app metadata and checks whether each game has 500+ reviews and a score near the lower cutoffs (20%, 40% or 70%). Games in these score ranges are poorly covered by the many public lists of Steam game IDs, so they are collected here. |
| `parr_download.py` | Downloads the full list of reviews for each game and aggregates them into daily positive and negative counts (`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 id
- `genres`: genres separated by `;`
- `group`: `sp`, `mp` or `both`
- `price`: current base price (blank or `NA` if none)
- `data/<id>.csv`: one file per game, with columns `date`, `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
```bash
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 in `ln(1 + new reviews)` at the cutoff
- `pct`: the same effect as a percentage change
- `p_cluster`: p-value with game-clustered standard errors
- `p_boot`: wild cluster bootstrap p-value (unreliable where it is exactly `0.0`; use `p_cluster` there)
## 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.