Bookmark and Share

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: endogeneous switching regression with movestay-ado: error after margins command


From   Stephani Jens <[email protected]>
To   "'[email protected]'" <[email protected]>
Subject   st: endogeneous switching regression with movestay-ado: error after margins command
Date   Wed, 18 Jan 2012 09:46:17 +0000

Dear Statalist members,

I am using the ado-file by Lokshin/Sajaia 2004 called movestay (Stata Journal 4, No. 3) to estimate an endogenous switching regression. After estimation, I want to use the margins command to calculate the marginal effects in the outcome equations (conditional on being observed in that equation) Unfortunately, I get an error message saying " missing predicted values encountered within the estimation sample r(322)". It seems to me that this is a bug.

Here is my code:

movestay (y $a), select(var1 $a $s) cluster(idnum)

** output omitted **

margins, dydx($a) atmeans predict(yc1_1)

Warning: cannot perform check for estimable functions.
missing predicted values encountered within the estimation sample
r(322);

Does anybody have an idea what the problem might be?
Any help will be greatly appreciated.


Jens Stephani




-----
Jens Stephani
Institute for Employment Research (IAB)
- Research Department 'Establishments and Employment' -
Regensburger Strasse 104
90478 Nuremberg
Germany
www.iab.de



*
*   For searches and help try:
*   http://www.stata.com/help.cgi?search
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/


© Copyright 1996–2018 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   Site index