help mtefeplot)}

Title

mtefeplot -- Plot MTE graphs from mtefe estimates

Syntax

mtefeplot [namelist] , [options]

options

cropfigure(numlist) crops the confidence bands at the min and max specified in numlist

memory specifies that the estimates be restored from memory rather than disk

normalci uses normal-based confidence interval rather than percentile-based for bootstrapped estimates.

folder(string) uses estimates saved in the subfolder string

names(namelist) names the plots in the legend using the names in namelist

graph_opts(string) add twoway options to the graph, see twoway_options

legendtitle(string) uses the title string for the legend

level(#) plots a #% confidence interval. Default: 95%

late plots the MTE for the compliers and the LATE weights

att plots the MTE for the treated and the ATT weights

atut plots the MTE for the untreated and the ATUT weights

prte plots the MTE for the policy compliers and the PRTE weights

mprte1 plots the weights for the Marginal Policy Relevant Treatment Effect 1

mprte2 plots the weights for the Marginal Policy Relevant Treatment Effect 2

mprte3 plots the weights for the Marginal Policy Relevant Treatment Effect 3

separate plots the estimated outcomes separately for the treated and untreated state

trimsupport only plots the MTE for unobserved resistance between the two values in trimsupport

points use scatter rather than line plots for the MTE(s), useful when support is limited.

Description

mtefeplot plots the marginal treatment effects from previously stored or
saved estimates from mtefe.

If namelist is empty or contains one name and neither options late,
att, atut or prte is specified, mtefeplot will plot a
standard Marginal Treatment effects plot of the stored or saved estimate. If
it contains estimates of the standard errors, confidence bands are included.
Graph includes a plot of the average treatment effect for reference. If
namelist is empty, estimates from memory is used.

If namelist is empty or contains one name, separate is specified and
no treatment parameter options are specified, mtefeplot will plot the
outcomes in the treated and untreated state separately together with the MTE
curve. Average treatment effect is plotted for reference.

If namelist contains more than two names, mtefeplot plots several MTE
plots in the same graphs with no confidence bands.

If namelist is empty or contains one name, and either late, att
,atut, prte, mprte1, mprte2 or mprte3 is specified,
mtefeplot plots treatment parameter graphs. These contain a) the MTE for
the particular treatment effect requested, b) the estimated weights over the
U_d distribution for the requested treatment effect parameter and c) the point
estimate of the treatment effect labeled at the left axis. In addition, the main
MTE graph and the average treatment effect is plotted for reference. If
late is specified, the regular 2SLS estimate is also dotted for reference.
If namelist is empty, estimates from memory is used. More than two treatment
effect parameters specified at the same time will clutter the figure, and is not
recommended.

More than two names in namelist and either treatment parameter option or
the separate option gives an error.

Examples

Generate some data and estimate MTE

. mtefe_gendata

. mtefe lwage exp exp2 (col=distCol)

. est sto normal

. mtefe lwage exp exp2 (col=distCol), separate pol(2)

. est sto polynomial

. est save myfolder/polynomial

. mtefe lwage exp exp2 (col=distCol), semiparametric gridponts(100)

. est sto semipar

Standard MTE plot of the estimate in memory

. mtefeplot

Plots of three different saved MTE estimates in the same graph

. mtefeplot normal polynomial semipar, memory legendtitle("Specification") names("Normal" "Polynomial" "Semiparametric")

Plot of the estimated local average treatment effect and weights

. mtefeplot normal, mem late

Plot of the estimated ATT and ATUT with weights

. mtefeplot polynomial, mem att atut

Plot of outcomes in the treated and untreated state of an estimate saved in "myfolder"

. mtefeplot polynomial, folder(myfolder) separate

Author

Martin Eckhoff Andresen

University of Oslo & Statistics Norway

Oslo, NO

martin.eckhoff.andresen@gmail.com

Also see

Main help file for mtefe