Dear Statalist,
After installing -movestay- you can use -mspredict- to form predicted
values.
There is an issue with -mspredict- though when the list of regressors is
very long.
I believe the issue is with the following line
. local param = "`e(ivar_prob)' 1"
I think the equal sign is what gives the problem. Possibly taking away the
equal sign solves all the problems (but I wait for confirmation on this).
If you want to see the issue do the following
. use
http://www.worldbank.org/research/projects/poverty/programs/movestay_example
, clear
. drawnorm variable1 variable2 variable3 variable4 variable5 variable6 //
the only reason for this line is to make a dataset that is big enough go
beyond the maximum character of the local
. movestay lmo_wage age age2 edu13 edu4 edu5 reg2 reg3 reg4, select(private
=m_s1 job_hold variable1 variable2 variable3 variable4 variable5 variable6)
. mspredict newvar, xb1
You should get the error message "variabl ambiguous abbreviation".
In a previous posting on -movestay-, Nick Cox suggested that the authors of
-movestay- may not be Statalist members. In general what is the best course
of action? Email Statalist or email the authors directly? Or both?
Thanks.
Best,
Renzo Comolli
*
* For searches and help try:
* http://www.stata.com/support/faqs/res/findit.html
* http://www.stata.com/support/statalist/faq
* http://www.ats.ucla.edu/stat/stata/