Supplementary File S4 — analysis scripts
jintelligence-4520750, first revision

Contents
  SupplementaryFileS3_dataset_k11.xlsx  the analysed dataset (identical to Supplementary File S3)
  MA_k11.R                              primary synthesis, moderators and sensitivity models (metafor)
  MA_specification_k11.R                specification analysis over every alternative coefficient
                                        the source studies report
  expected_*.txt                        the output each script produced on the authors' computer

To reproduce
  Rscript MA_k11.R
  Rscript MA_specification_k11.R

Requirements: R with metafor and readxl.
Both scripts read the dataset from the working directory. No network access is required.

Note on two conventions that otherwise look like discrepancies with standard meta-analytic
output: metafor computes I-squared using fixed-effect weights to form the typical
within-study variance, and its default prediction interval uses the normal rather than the
t quantile; both are followed here deliberately. metafor's regtest reports the coefficient
on the predictor (the slope), not the intercept.
