


\input{ac2bIIIparameters}

\usetikzlibrary{positioning}

\pgfplotstableread{ac2bpolicyperm.dat}\table
\pgfplotsset{every axis/.append style={width=2.11in, height=1.2in}}
\pgfplotsset{every axis plot post/.append style={mark=none}}
\pgfplotsset{every axis/.append style={xtick=\empty}}
\pgfplotsset{every axis/.append style={ytick=\empty}}
\pgfplotsset{every axis/.append style={axis x line=bottom}}
\pgfplotsset{every axis/.append style={axis y line=left}}
\pgfplotsset{every axis/.append style={smooth}}
\pgfplotsset{every axis/.append style={ymin=0}}

  \begin{figure}[p]
	\begin{tikzpicture}[remember picture]
	\begin{axis}[title={$\phi=\phiOne$},
                    every outer x axis line/.append style={-,gray},
                    every outer y axis line/.append style={-,gray}]
		\addplot table[x index=0,y index=1] from \table;
        \addplot[color=gray,dashed] coordinates
        {(1,0.5) (\mrun,0.5)};
        \node (plotOne) {};
	\end{axis}
	\end{tikzpicture}
    \hspace{.15cm}
	\begin{tikzpicture}
	\begin{axis}[title={$\phi=\phiTwo$}, every outer x axis line/.append style={-,gray},
                    every outer y axis line/.append style={-,gray}]
		\addplot table[x index=0,y index=2] from \table;
        \addplot[color=gray,dashed] coordinates
        {(1,0.5) (\mrun,0.5)};
	\end{axis}
	\end{tikzpicture}
    \hspace{.15cm}
 	\begin{tikzpicture}
	\begin{axis}[title={$\phi=\phiThree$}, every outer x axis line/.append style={-,gray},
                    every outer y axis line/.append style={-,gray}]
		\addplot table[x index=0,y index=3] from \table;
        \addplot[color=gray,dashed] coordinates
        {(1,0.5) (\mrun,0.5)};
    \end{axis}
	\end{tikzpicture}
    \begin{tikzpicture}[remember picture,overlay]
        \node (first)[above left=2mm of plotOne] {$\rho=\rhoOne$};
        \node [above=of plotOne.north west] {1};
    \end{tikzpicture}

    \begin{tikzpicture}[remember picture]
    	\begin{axis}[every outer x axis line/.append style={-,gray},
                    every outer y axis line/.append style={-,gray}]
		\addplot table[x index=0,y index=4] from \table;
        \addplot[color=gray,dashed] coordinates
        {(1,0.5) (\mrun,0.5)};
        \node (plotTwo) {};
	\end{axis}
    \end{tikzpicture}
    \hspace{.15cm}
    \begin{tikzpicture}
	\begin{axis}[every outer x axis line/.append style={-,gray},
                 every outer y axis line/.append style={-,gray}]
		\addplot table[x index=0,y index=5] from \table;
        \addplot[color=gray,dashed] coordinates
        {(1,0.5) (\mrun,0.5)};
	\end{axis}
	\end{tikzpicture}
    \hspace{.15cm}
    \begin{tikzpicture}
	\begin{axis}[every outer x axis line/.append style={-,gray},
                 every outer y axis line/.append style={-,gray}]
		\addplot table[x index=0,y index=6] from \table;
        \addplot[color=gray,dashed] coordinates
        {(1,0.5) (\mrun,0.5)};
	\end{axis}
	\end{tikzpicture}
    \begin{tikzpicture}[remember picture, overlay]
        \node (second) [above left=2mm of plotTwo]{$\rho=\rhoTwo$};
        \node (sigmaOne) [left=of second] {$\sigma=\sigOne$};
    \end{tikzpicture}

    \begin{tikzpicture}[remember picture]
	\begin{axis}[every outer x axis line/.append style={-,gray},
                    every outer y axis line/.append style={-,gray}]
		\addplot table[x index=0,y index=7] from \table;
        \addplot[color=gray,dashed] coordinates
        {(1,0.5) (\mrun,0.5)};
        \node (plotThree) {};
	\end{axis}
	\end{tikzpicture}
    \hspace{.15cm}
    \begin{tikzpicture}
	\begin{axis}[every outer x axis line/.append style={-,gray},
                 every outer y axis line/.append style={-,gray}]
		\addplot table[x index=0,y index=8] from \table;
        \addplot[color=gray,dashed] coordinates
        {(1,0.5) (\mrun,0.5)};
	\end{axis}
	\end{tikzpicture}
    \hspace{.15cm}
    \begin{tikzpicture}
	\begin{axis}[every outer x axis line/.append style={-,gray},
                 every outer y axis line/.append style={-,gray}]
		\addplot table[x index=0,y index=9] from \table;
        \addplot[color=gray,dashed] coordinates
        {(1,0.5) (\mrun,0.5)};
	\end{axis}
	\end{tikzpicture}
        \begin{tikzpicture}[remember picture,overlay]
        \node (three) [above left=2mm of plotThree] {$\rho=\rhoThree$};
    \end{tikzpicture}

    \begin{tikzpicture}[remember picture]
	\begin{axis}[every outer x axis line/.append style={-,gray},
                    every outer y axis line/.append style={-,gray}]
		\addplot table[x index=0,y index=10] from \table;
        \addplot[color=gray,dashed] coordinates
        {(1,0.5) (\mrun,0.5)};
        \node (plotFour) {};
	\end{axis}
	\end{tikzpicture}
    \hspace{.15cm}
    \begin{tikzpicture}
	\begin{axis}[every outer x axis line/.append style={-,gray},
                 every outer y axis line/.append style={-,gray}]
		\addplot table[x index=0,y index=11] from \table;
        \addplot[color=gray,dashed] coordinates
        {(1,0.5) (\mrun,0.5)};
	\end{axis}
	\end{tikzpicture}
	\hspace{.15cm}
    \begin{tikzpicture}
	\begin{axis}[every outer x axis line/.append style={-,gray},
                 every outer y axis line/.append style={-,gray}]
		\addplot table[x index=0,y index=12] from \table;
        \addplot[color=gray,dashed] coordinates
        {(1,0.5) (\mrun,0.5)};
	\end{axis}
	\end{tikzpicture}
    \begin{tikzpicture}[remember picture,overlay]
        \node (four) [above left=2mm of plotFour] {$\rho=\rhoOne$};
    \end{tikzpicture}

    \begin{tikzpicture}[remember picture]
	\begin{axis}[every outer x axis line/.append style={-,gray},
                    every outer y axis line/.append style={-,gray}]
		\addplot table[x index=0,y index=13] from \table;
        \addplot[color=gray,dashed] coordinates
        {(1,0.5) (\mrun,0.5)};
        \node (plotFive) {};
	\end{axis}
	\end{tikzpicture}
    \hspace{.15cm}
    \begin{tikzpicture}
	\begin{axis}[every outer x axis line/.append style={-,gray},
                 every outer y axis line/.append style={-,gray}]
		\addplot table[x index=0,y index=14] from \table;
        \addplot[color=gray,dashed] coordinates
        {(1,0.5) (\mrun,0.5)};
	\end{axis}
    \end{tikzpicture}
	\hspace{.15cm}
    \begin{tikzpicture}
	\begin{axis}[every outer x axis line/.append style={-,gray},
                 every outer y axis line/.append style={-,gray}]
		\addplot table[x index=0,y index=15] from \table;
        \addplot[color=gray,dashed] coordinates
        {(1,0.5) (\mrun,0.5)};
	\end{axis}
	\end{tikzpicture}
    \begin{tikzpicture}[remember picture,overlay]
        \node (fifth) [above left=2mm of plotFive] {$\rho=\rhoTwo$};
        \node (sigmaTwo) [left=of fifth] {$\sigma=\sigTwo$};
    \end{tikzpicture}

    \begin{tikzpicture}[remember picture]
	\begin{axis}[every outer x axis line/.append style={-,gray},
                    every outer y axis line/.append style={-,gray}]
		\addplot table[x index=0,y index=16] from \table;
        \addplot[color=gray,dashed] coordinates
        {(1,0.5) (\mrun,0.5)};
        \node (plotSix) {};
	\end{axis}
	\end{tikzpicture}	
    \hspace{.15cm}
        \begin{tikzpicture}
	\begin{axis}[every outer x axis line/.append style={-,gray},
                 every outer y axis line/.append style={-,gray}]
		\addplot table[x index=0,y index=17] from \table;
        \addplot[color=gray,dashed] coordinates
        {(1,0.5) (\mrun,0.5)};
	\end{axis}
	\end{tikzpicture}
	\hspace{.15cm}
    \begin{tikzpicture}
	\begin{axis}[every outer x axis line/.append style={-,gray},
                 every outer y axis line/.append style={-,gray}]
		\addplot table[x index=0,y index=18] from \table;
        \addplot[color=gray,dashed] coordinates
        {(1,0.5) (\mrun,0.5)};
	\end{axis}
	\end{tikzpicture}
    \begin{tikzpicture}[remember picture,overlay]
        \node (sixth)[above left=2mm of plotSix] {$\rho=\rhoThree$};
    \end{tikzpicture}

    \begin{tikzpicture}[remember picture]
	\begin{axis}[every outer x axis line/.append style={-,gray},
                    every outer y axis line/.append style={-,gray}]
		\addplot table[x index=0,y index=19] from \table;
        \addplot[color=gray,dashed] coordinates
        {(1,0.5) (\mrun,0.5)};
        \node (plotSeven) {};
	\end{axis}
	\end{tikzpicture}
    \hspace{.15cm}
    \begin{tikzpicture}
	\begin{axis}[every outer x axis line/.append style={-,gray},
                 every outer y axis line/.append style={-,gray}]
		\addplot table[x index=0,y index=20] from \table;
        \addplot[color=gray,dashed] coordinates
        {(1,0.5) (\mrun,0.5)};
	\end{axis}
	\end{tikzpicture}
	\hspace{.15cm}
    \begin{tikzpicture}
	\begin{axis}[every outer x axis line/.append style={-,gray},
                 every outer y axis line/.append style={-,gray}]
		\addplot table[x index=0,y index=21] from \table;
        \addplot[color=gray,dashed] coordinates
        {(1,0.5) (\mrun,0.5)};
	\end{axis}
	\end{tikzpicture}
    \begin{tikzpicture}[remember picture,overlay]
        \node (seventh)[above left=2mm of plotSeven] {$\rho=\rhoOne$};
    \end{tikzpicture}

    \begin{tikzpicture}[remember picture]
	\begin{axis}[every outer x axis line/.append style={-,gray},
                    every outer y axis line/.append style={-,gray}]
		\addplot table[x index=0,y index=22] from \table;
        \addplot[color=gray,dashed] coordinates
        {(1,0.5) (\mrun,0.5)};
        \node (plotEight) {};
	\end{axis}
	\end{tikzpicture}
    \hspace{.15cm}
        \begin{tikzpicture}
	\begin{axis}[every outer x axis line/.append style={-,gray},
                 every outer y axis line/.append style={-,gray}]
		\addplot table[x index=0,y index=23] from \table;
        \addplot[color=gray,dashed] coordinates
        {(1,0.5) (\mrun,0.5)};
	\end{axis}
	\end{tikzpicture}
	\hspace{.15cm}
    \begin{tikzpicture}
	\begin{axis}[every outer x axis line/.append style={-,gray},
                 every outer y axis line/.append style={-,gray}]
		\addplot table[x index=0,y index=24] from \table;
        \addplot[color=gray,dashed] coordinates
        {(1,0.5) (\mrun,0.5)};
	\end{axis}
	\end{tikzpicture}
    \begin{tikzpicture}[remember picture,overlay]
        \node (eighth) [above left=2mm of plotEight] {$\rho=\rhoTwo$};
        \node (sigmaThree) [left=of eighth] {$\sigma=\sigThree$};
    \end{tikzpicture}
	
    \begin{tikzpicture}[remember picture]
	\begin{axis}[every outer x axis line/.append style={-,gray},
                    every outer y axis line/.append style={-,gray}]
		\addplot table[x index=0,y index=25] from \table;
        \addplot[color=gray,dashed] coordinates
        {(1,0.5) (\mrun,0.5)};
        \node (plotNine) {};
	\end{axis}
	\end{tikzpicture}
    \hspace{.15cm}
    \begin{tikzpicture}[remember picture]
	\begin{axis}[every outer x axis line/.append style={-,gray},
                 every outer y axis line/.append style={-,gray}]
		\addplot table[x index=0,y index=26] from \table;
        \addplot[color=gray,dashed] coordinates
        {(1,0.5) (\mrun,0.5)};
        \node (plotTen) {};
	\end{axis}
	\end{tikzpicture}
	\hspace{.15cm}
    \begin{tikzpicture}[remember picture]
	\begin{axis}[every outer x axis line/.append style={-,gray},
                 every outer y axis line/.append style={-,gray}]
		\addplot table[x index=0,y index=27] from \table;
        \addplot[color=gray,dashed] coordinates
        {(1,0.5) (\mrun,0.5)};
        \node (plotEleven) {};
	\end{axis}
	\end{tikzpicture}
    \begin{tikzpicture}[remember picture,overlay]
        \node (time1) [below=.5mm of plotNine.west] {0};
        \node (ninth) [above left=2mm of plotNine] {$\rho=\rhoThree$};
        \node (time2) [below right=.5mm and 3.5cm of plotEleven.west] {\mrun};
        \node (text) [below right=1.7mm and .2mm of plotTen.west] {Years since change};
    \end{tikzpicture}
    \begin{tikzpicture}[remember picture,overlay]
        \draw[color=gray] (sigmaOne.north) |- (first.west);
        \draw[color=gray] (sigmaOne.south) |- (three.west);
        \draw[color=gray] (sigmaTwo.north) |- (four.west);
        \draw[color=gray] (sigmaTwo.south) |- (sixth.west);
        \draw[color=gray] (sigmaThree.north) |- (seventh.west);
        \draw[color=gray] (sigmaThree.south) |- (ninth.west);
    \end{tikzpicture}
    \caption{This figure plots the impulse responses to a permanent policy change for the infant firm.}\label{polperm}
 \end{figure}
