-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
122 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
\begin{tikzpicture} | ||
\begin{axis}[ | ||
xmin=-1.1, xmax=1.1, | ||
ymin=-1.1, ymax=1.1, | ||
xlabel=$\beta_s$, | ||
ylabel={$\underline{\beta^*}$}, | ||
xtick={-1, 0, 1}, % Specify the x-axis ticks here | ||
ytick={-1, 1}, | ||
extra y ticks={-0.7, 0.3}, % Specify the positions of the special x-axis ticks together | ||
extra y tick style={yticklabel style={color=black}}, % Apply a style to all extra x ticks | ||
extra y tick labels={$-(1-\omega)$, $\omega$}, % Customize the labels of the special x-axis ticks | ||
] | ||
|
||
% Unconstrained solution | ||
\addplot [domain=-1:1, color=black] {0.3*x - (1-0.3)}; | ||
|
||
% Solution with monotonicity constraint | ||
\addplot [domain=-1:0, color=blue] {0.3*x - (1-0.3)}; | ||
\addplot [domain=0:1, color=blue] {x - (1-0.3)}; | ||
|
||
% Add text for each line | ||
\node at (axis cs:-0.25, 0.75) [color=black, anchor=west] {\footnotesize No Constraint}; | ||
\node at (axis cs:-0.25, 0.5) [color=blue, anchor=west] {\footnotesize Increasing MTR Functions}; | ||
|
||
\end{axis} | ||
\end{tikzpicture} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
\begin{tikzpicture} | ||
\begin{axis}[ | ||
xmin=-1.1, xmax=1.1, | ||
ymin=-1.1, ymax=1.1, | ||
xlabel=$\beta_s$, | ||
ylabel={$\overline{\beta^*}$}, | ||
xtick={-1, 0, 1}, % Specify the x-axis ticks here | ||
ytick={-1, 1}, | ||
extra y ticks={-0.3, 0.7}, % Specify the positions of the special x-axis ticks together | ||
extra y tick style={yticklabel style={color=black}}, % Apply a style to all extra x ticks | ||
extra y tick labels={$-\omega$, $1-\omega$}, % Customize the labels of the special x-axis ticks | ||
] | ||
|
||
% Unconstrained solution | ||
\addplot [domain=-1:1, color=black] {1-0.3 + 0.3*x}; | ||
|
||
% Solution with monotonicity constraint | ||
\addplot [domain=-1:0, color=blue] {x + 0.7}; | ||
\addplot [domain=0:1, color=blue] {0.3*x + 0.7}; | ||
|
||
% Add text for each line | ||
\node at (axis cs:-0.25, -0.5) [color=black, anchor=west] {\footnotesize No Constraint}; | ||
\node at (axis cs:-0.25, -0.75) [color=blue, anchor=west] {\footnotesize Increasing MTR Functions}; | ||
|
||
\end{axis} | ||
\end{tikzpicture} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
\begin{tikzpicture} | ||
\begin{axis}[ | ||
xmin=-0.1, xmax=1.1, | ||
ymin=-0.1, ymax=1.1, | ||
xlabel=$u$, | ||
ylabel={$\E[Y(d)|U=u]$}, | ||
xtick={0,1}, % Specify the x-axis ticks here | ||
extra x ticks={0.2, 0.5, 0.8}, % Specify the positions of the special x-axis ticks together | ||
extra x tick style={xticklabel style={color=black}}, % Apply a style to all extra x ticks | ||
extra x tick labels={$p(0)$, $p(1)$, $p(1) + \overline{u}$}, % Customize the labels of the special x-axis ticks | ||
] | ||
|
||
\addplot [domain=0.2:0.5, color=black] {0.2} node[pos=1, right] {\footnotesize $\theta_{20} = -\beta_s$}; | ||
\addplot [domain=0.2:0.5, color=black] {0} node[pos=1, right] {\footnotesize $\theta_{21} = 0$}; | ||
|
||
\draw [decorate,decoration={brace,amplitude=10pt,raise=0pt},yshift=0pt, xshift=-1pt] | ||
(axis cs:0.2,0) -- (axis cs:0.2,0.2) node [black,midway,xshift=-1cm] {\footnotesize$-\beta_s$}; | ||
|
||
\addplot [domain=0.5:0.8, color=red] {0.2} node[pos=1, right, color=red] {\footnotesize $\theta_{30} = -\beta_s$}; | ||
\addplot [domain=0.5:0.8, color=red, dashed] {0} node[pos=1, right, color=red] {\footnotesize Infeasible}; | ||
\addplot [domain=0.5:0.8, color=red] {1} node[pos=1, right, color=red] {\footnotesize $\theta_{31} = 1$}; | ||
|
||
\draw [decorate,decoration={brace,amplitude=10pt,mirror,raise=0pt},yshift=0pt, xshift=1pt, color=red] | ||
(axis cs:0.8,0.2) -- (axis cs:0.8,1) node [red,midway,xshift=1cm] {\footnotesize$\beta_u$}; | ||
|
||
|
||
\end{axis} | ||
\end{tikzpicture} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
\begin{tikzpicture} | ||
\begin{axis}[ | ||
xmin=-0.1, xmax=1.1, | ||
ymin=-0.1, ymax=1.1, | ||
xlabel=$u$, | ||
ylabel={$\E[Y(d)|U=u]$}, | ||
xtick={0,1}, % Specify the x-axis ticks here | ||
extra x ticks={0.2, 0.5, 0.8}, % Specify the positions of the special x-axis ticks together | ||
extra x tick style={xticklabel style={color=black}}, % Apply a style to all extra x ticks | ||
extra x tick labels={$p(0)$, $p(1)$, $p(1) + \overline{u}$}, % Customize the labels of the special x-axis ticks | ||
] | ||
|
||
\addplot [domain=0.2:0.5, color=black] {0} node[pos=1, right] {\footnotesize $\theta_{20} = 0$}; | ||
\addplot [domain=0.2:0.5, color=black] {0.2} node[pos=1, right] {\footnotesize $\theta_{21} = 0.2$}; | ||
|
||
\draw [decorate,decoration={brace,amplitude=10pt,raise=0pt},yshift=0pt, xshift=-1pt] | ||
(axis cs:0.2,0) -- (axis cs:0.2,0.2) node [black,midway,xshift=-1cm] {\footnotesize$\beta_s$}; | ||
|
||
\addplot [domain=0.5:0.8, color=red] {0} node[pos=1, right, color=red] {\footnotesize $\theta_{30} = 0$}; | ||
\addplot [domain=0.5:0.8, color=red] {1} node[pos=1, right, color=red] {\footnotesize $\theta_{31} = 1$}; | ||
|
||
\draw [decorate,decoration={brace,amplitude=10pt,mirror,raise=0pt},yshift=0pt, xshift=1pt, color=red] | ||
(axis cs:0.8,0) -- (axis cs:0.8,1) node [red,midway,xshift=1cm] {\footnotesize$\beta_u$}; | ||
|
||
|
||
\end{axis} | ||
\end{tikzpicture} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters