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: Error with ivregress and labs
From
Cory Smith <[email protected]>
To
[email protected]
Subject
st: Error with ivregress and labs
Date
Thu, 7 Feb 2013 20:34:27 -0500
Hi all,
I can't figure out the error I'm getting here. I'm running an IV
regressions (2SLS) that involves some lags and dummy variables and I
get a strange error
ivregress 2sls disMort (L.WmortDiff = WrainDiff) 1900.year 1901.year
cannot specify additional instruments without endogenous
regressors unless you use the GMM estimator
However, if I just generate a new variable and run it
gen fakevariable = L.WmortDiff
ivregress 2sls disMort (fakevariable = WrainDiff) 1900.year 1901.year
it works fine. Can anyone explain this strange behavior to me?
Thanks,
Cory
*
* 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/