\documentclass[11pt]{article}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage{lmodern}
\usepackage[margin=1in]{geometry}
\usepackage{parskip}
\usepackage[hidelinks]{hyperref}
\urlstyle{same}

\newcommand{\code}[1]{\texttt{#1}}
\newcommand{\heading}[1]{\bigskip{\large\bfseries #1}\par\nobreak\smallskip}
\setlength{\emergencystretch}{2em}

\begin{document}
\thispagestyle{empty}

{\LARGE\bfseries REPLICATION PACKAGE}\par
\medskip
\begin{tabular}{@{}l p{12.4cm}@{}}
\textbf{Paper:}       & Electricity demand has not become more price-responsive despite ninety years of technological change \\[2pt]
\textbf{Authors:}     & Irsova, Havranek, Kudela, Kudelova, Sikl \\[2pt]
\textbf{Project URL:} & \mbox{\url{https://meta-analysis.cz/electricity}} \\
\end{tabular}

\heading{PACKAGE CONTENTS}
The replication package contains the following files and folders.

\noindent\textbf{Main directory files:}
\begin{itemize}
  \item \code{electricity.xlsx}: Main input dataset (sheet \code{data}, one row per estimate; sheet \code{var\_list} documents the variables).
  \item \code{electricity.R}: R replication script (see below).
  \item \code{studies.xlsx}: List of the primary studies (sheet \code{papers}) behind the included-studies appendix.
\end{itemize}

\noindent\textbf{Subfolders:}
\begin{itemize}
  \item \code{figures/}: Output folder for all figures of the paper (each written as \code{.pdf} with a companion \code{.png}).
  \item \code{tables/}: Output folder for all tables of the paper (\code{.tex}); created automatically when the script runs.
\end{itemize}

\heading{SOFTWARE REQUIREMENTS}
\begin{itemize}
  \item R version 4.0 or higher (certified on R 4.6.0).
  \item R packages \code{readxl}, \code{sandwich}, \code{lmtest}, \code{BMS}, \code{metafor}, \code{ggplot2}, \code{patchwork}, \code{scales}, \code{ragg}, and \code{jsonlite}. Missing packages are installed automatically.
\end{itemize}

\heading{REPLICATION INSTRUCTIONS}
Run the following command in R from the package directory:
\begin{quote}\code{source("electricity.R")}\end{quote}
\noindent (equivalently, \code{Rscript electricity.R} from a terminal). The script performs the following:
\begin{itemize}
  \item Imports the dataset and constructs the analysis variables (Marshallian-equivalent pool, 1\%-winsorization).
  \item Produces the headline results (the identification ladder, the horizon path, and the two-clocks calendar-time test) with study-clustered inference.
  \item Runs the full publication-bias battery (FAT-PET, PEESE, WAAP, Top-10\%, STEM, endogenous kink, MAIVE, p-uniform*, selection model) with two-way (study $\times$ database) clustering.
  \item Performs Bayesian Model Averaging (\code{BMS}) together with the best-practice and robustness checks.
  \item Writes all tables of the paper as \code{.tex} files into \code{tables/}, all figures into \code{figures/}, and three plain-text result summaries (\code{results\_headline.txt}, \code{results\_model\_averaging.txt}, \code{results\_database\_clustering.txt}).
\end{itemize}

\heading{NOTES ON REPRODUCIBILITY}
\begin{itemize}
  \item \textbf{Relative paths.} After downloading and unzipping the package, run all analyses from the directory where the files are extracted. The script locates its own folder, so no manual changes to file paths or working directories are required.
  \item \textbf{Determinism.} All results are deterministic except for the seeded MCMC in the Bayesian Model Averaging step, whose negligible sampling noise ($\le 0.002$) does not affect any reported number.
  \item \textbf{Documentation.} Additional documentation and online appendices are available at \mbox{\url{https://meta-analysis.cz/electricity/}}.
\end{itemize}

\heading{CONTACT}
For questions regarding the replication package, contact \href{mailto:zuzana.irsova@fsv.cuni.cz}{zuzana.irsova@fsv.cuni.cz}.

\end{document}
