-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathivdesc.sthlp
87 lines (51 loc) · 2.95 KB
/
ivdesc.sthlp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
{smcl}
{* *! version 1.1.0 March 18, 2021 @ 18:24:26}{...}
{cmd:help ivdesc}
{hline}
{title:Title}
{p2colset 5 20 22 2}{...} {p2col :{hi:ivdesc} {hline 2}}
Profiling compliers and non-compliers for instrumental variable analysis {p_end} {p2colreset}{...}
{title:Syntax}
{p 8 17 2}{cmd:ivdesc}
{it:{help varname:covariate}}
{it:{help varname:treatment}}
{it:{help varname:instrument}}
{ifin}
[{cmd:,} {it:options}]
{marker options}{...}
{title:Options}
{phang}{opt no:boot} report standard errors based on asymptotic theory instead of bootstrap standard errors
{phang}{opt r:eps(#)} perform # bootstrap replications; default is reps(1000)
{phang}{opt var:iance} also report the variance of the covariate for each subgroup
{phang}{opt nobal:ance} skip the balance test
{phang}{cmd:fmt(}{it:subopts}{cmd:)} passed through to {cmd:estout matrix(,subopts)} that handles the display of the estimates
{marker description}{...}
{title:Description}
{phang} {cmd:ivdesc} estimates the mean and the associated standard error of a covariate for the complier, never-taker and always-taker subpopulation within a sample where some, but not all, units are encouraged by instrument to take the treatment.
{title:Remarks}
{phang} Observations with missing values in either {it:covariate}, {it:treatment},
or {it:instrument} are deleted before estimation (listwise deletion).
{phang} One-sided noncompliance is supported. The mean for the always-/never-taker subpopulation will only be computed if there are at least two observed units in these subpopulations.
{phang} If {cmd:noboot}, standard errors based on asymptotic theory are estimated.
{phang} The balance test is a t-test allowing for unequal variances.
{title:Examples}
{pstd}Load the JTPA data
{p 4 8 2}{stata "use http://fmwww.bc.edu/repec/bocode/j/jtpa.dta, clear":. use "http://fmwww.bc.edu/repec/bocode/j/jtpa.dta",clear}{p_end}
{p 4 8 2}{stata "ivdesc age training assignmt":. ivdesc age training assignmt}{p_end}
{p 4 8 2}{stata "ivdesc hispanic training assignmt":. ivdesc hispanic training assignmt}{p_end}
{pstd}Plot the results
{p 4 8 2}{stata "matrix C = r(ivdesc)'":. matrix C = r(ivdesc)'}{p_end}
{p 4 8 2}{stata "coefplot matrix(C), se(C[2])":. coefplot matrix(C), se(C[2])}{p_end}
{title:Saved results}
{synoptset 15 tabbed}{...}
{p2col 5 15 19 2: Matrices}{p_end}
{synopt:{cmd:r(ivdesc)}} all estimates {p_end}
{p2col 5 15 19 2: Scalar}{p_end}
{synopt:{cmd:r(pval)}} p-value from balance test {p_end}
{title:Reference}
{p 4 8 2}
{pstd} M. Marbach and D. Hangartner. 2020. Profiling Compliers and Non-compliers for Instrumental Variable Analysis. {it:Political Analysis} 28(3), 435-444. {p_end}
{pstd} D. Hangartner, M. Marbach, L. Henckel, M. H. Maathuis, R. R. Kelz, and L. Keele. 2021. Profiling Compliers in Instrumental Variables Designs. Available at arXiv: https://arxiv.org/abs/2103.06328. {p_end}
{title:Authors}
Moritz Marbach (Maintainer), [email protected]
Texas A&M University, United States