
% PREAMBLE
\documentclass[11pt]{article}
\usepackage{geometry}                % See geometry.pdf to learn the layout options. There are lots.
	\geometry{letterpaper}                   % ... or a4paper or a5paper or ...
\usepackage{pdflscape}
\usepackage[parfill]{parskip}    % Activate to begin paragraphs with an empty line rather than an indent
\usepackage{graphicx}
\usepackage{amssymb,amsmath}
\usepackage{epstopdf}
\usepackage{lscape}
\usepackage{adjustbox,lipsum}
\usepackage{threeparttable} % For Notes below table
\usepackage{longtable}
\usepackage{verbatim}
\usepackage{booktabs,caption,fixltx2e}
\usepackage{flafter}
\usepackage{tabularx}
\usepackage{threeparttablex}
\usepackage{array}
\usepackage{xcolor}
\usepackage{ragged2e}
% SET MARGINS
\geometry{margin=1in}

% this command lets you put line breaks in column titles in esttab
\newcommand{\specialcell}[2][c]{\begin{tabular}[#1]{@{}c@{}}#2\end{tabular}}
\newcommand{\speccell}[2][l]{%
	\begin{tabular}[#1]{@{}l@{}}#2\end{tabular}}
\newcommand\T{\rule{0pt}{2.6ex}}       % Top strut
% fixing column widths
\newcolumntype{C}[1]{>{\centering\arraybackslash}p{#1}}
\newcolumntype{L}[1]{>{\raggedright\arraybackslash}p{#1}}
% makes sure floats are centered
\makeatletter
\g@addto@macro\@floatboxreset\centering
\makeatother

% PATHS
	\newcommand{\fig}{Figures}
	\newcommand{\tab}{Tables}
\def\sym#1{\ifmmode^{#1}\else\(^{#1}\)\fi}


\begin{document}

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%% APPENDIX MATERIAL %%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%


%%%%%%%% THEORY %%%%%%%%

% COUNTERS AND NUMBERING
%\setcounter{table}{0}
%\renewcommand{\thetable}{A\arabic{table}}
%\setcounter{figure}{0}
%\renewcommand{\thefigure}{A\arabic{figure}}

%\begin{landscape}

\section*{Does Patient Demand Contribute to the Overuse of Prescription Drugs? (Lopez Sautmann, Schaner)}
\section*{Appendix Figures and Tables}

%\input{"\tab/A1_theory_table.tex"}

%\end{landscape}


%%%%%%%% EMPIRICS %%%%%%%%

% COUNTERS AND NUMBERING
\setcounter{table}{0}
\renewcommand{\thetable}{B\arabic{table}}
\setcounter{figure}{0}
\renewcommand{\thefigure}{B\arabic{figure}}


% FIGURES 

% MISALLOCATION BY TESTING STATUS
\begin{figure}[ht!]
    \centering
    \caption{Misallocation of Treatment by Clinic Malaria Test Status (Home Tested Subsample)}
    \label{misallocation}
    \begin{minipage}{.9\linewidth}
	\begin{center}
        \includegraphics[width=14cm]{{"\fig/B1_misallocation"}.pdf}
       \end{center}
 \footnotesize
 \emph{Notes:} Sample limited to 1,070 patients who had a valid home-based RDT result. 506 patients received no malaria test, 314 received an RDT only, 207 received microscope test only, and 43 received both types of tests. The black bar graphs the share of each subgroup that received a positive home-based RDT result. The dark grey bar graphs the share of the sample that either received a positive home-based test and an antimalarial prescription or had a negative test and no antimalarial prescription. The medium grey bar graphs the share of each group that had a positive home test and an antimalarial prescription; the light grey bar graphs the share of each group that had a negative test and no antimalarial prescription.     
    \end{minipage}
\end{figure}

% DISTRIBUTION PREDICTED MALARIA RISK
\begin{figure}[ht!]
	\caption{Distribution of Predicted Malaria Risk by Treatment Group}
		\label{dist_pred_pos}
		\begin{minipage}{.93\linewidth}
			\includegraphics[width=15cm]{{"\fig/B2_dist_pred_pos"}.pdf}
\footnotesize
\emph{Notes:} Kernel density estimates. Vertical dashed lines indicate 25th, 50th, and 75th percentiles of overall distribution respectively.
\end{minipage}
\end{figure}

\begin{landscape}

% TREATMENT OUTCOMES BY PREDICTED MALARIA RISK IN CONTROL GROUP- BY HOME TESTING STATUS
\begin{figure}[ht!]
	\caption{Treatment Outcomes by Predicted Malaria Risk in Control Group -- By Home RDT Test Status}
		\label{outcomeXpredpos_control_new_byHome}
		\begin{minipage}{1\linewidth}
			\includegraphics[width=23.3cm]{{"\fig/B3_outcomeXpredpos_control_home"}.pdf}
\footnotesize
\emph{Notes:} Results from local linear regressions. Regressions are run on the full sample, but graphs omit results for top and bottom 2.5 percent of malaria risk distribution to avoid influence of outliers. Vertical dashed lines indicate 25th, 50th, and 75th percentiles of predicted malaria risk respectively.
\end{minipage}
\end{figure}
\end{landscape}

% TREATMENT OUTCOMES BY BINS
\begin{figure}[ht!]
	\caption{Voucher Treatment Effects by Clinic Observation Day}
		\label{vouchersXbins}
		\begin{minipage}{.93\linewidth}
		\begin{center}
			\includegraphics[width=13cm]{{"\fig/B4_vouchersXbins"}.pdf}
		\end{center}
\footnotesize
\emph{Notes:} Graphs show point estimates of a linear regression model where PV and DV dummies are interacted with dummies for patient observation day bins, along with 95 percent confidence intervals.  Robust standard errors clustered at the clinic level in parentheses. All regressions control for clinic visit date fixed effects and dummies for days 1-2 and days 3-4. We use double selection lasso to choose additional controls. See notes to Table \ref{mal_tmt_overall_new} for a list of potential controls.
\end{minipage}
\end{figure}

\clearpage

% TABLES
\input{"\tab/B1_clinic_census.tex"}
\input{"\tab/B2_means_doctor.tex"}

% PI IMPACTS 
\input{"\tab/B3_mal_tmt_pat_info_lso.tex"}

% DI IMPACTS
\input{"\tab/B4_mal_tmt_doc_info_lso.tex"}

% SELECTION
\input{"\tab/B5_selection.tex"}

\input{"\tab/B6_diff_test_consent.tex"}

% PREDICTING RDT +
\input{"\tab/B7_mal_prob_probit.tex"}

% MAIN TABLES W/O CONTROLS
\input{"\tab/B8_mal_tmt_overall_nc.tex"}
\input{"\tab/B9_mal_tmt_het_nc.tex"}

% MAIN TABLES W/O LASSO
\input{"\tab/B10_mal_tmt_overall_nl.tex"} 
\input{"\tab/B11_mal_tmt_het_nl.tex"} 

% Share of Patients Taking An ACT at Home Survey
\input{"\tab/B12_vouchers_tmt_lso.tex"}

% STOCKPILING
\input{"\tab/B13_stockpiling_lso.tex"}

\begin{landscape}
% PI IMPACTS ON TESTING
\input{"\tab/B14_mal_testing_info_RX_lso.tex"} 
\end{landscape}

% COSTS
\input{"\tab/B15_cost_overall_lso.tex"}

% EXPECTED MATCH
\input{"\tab/B16_expected_match_lso.tex"}


\end{document}




