Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at statalist.org.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
st: cmp AMEs using margins
From
"Dimitriy V. Masterov" <[email protected]>
To
Statalist <[email protected]>
Subject
st: cmp AMEs using margins
Date
Thu, 6 Feb 2014 18:36:53 -0800
I am trying to estimate a model where I have a binary outcome D and
two endogenous variables. X is continuous and Z is binary. I have two
instruments, IV1 and IV2. I am using David Roodman's -cmp- to do
this.
Here's the sample code:
cmp
(D = X i.Z)
(Z = IV1)
(X = IV2)
, ind(4 4 1) nolr difficult;
margins, dydx(*) predict(pr eq(#1)) force;
Is the margins command correct if I want the marginal effects of the
two endogenous variables?
DVM
*
* For searches and help try:
* http://www.stata.com/help.cgi?search
* http://www.stata.com/support/faqs/resources/statalist-faq/
* http://www.ats.ucla.edu/stat/stata/