Statalist The Stata Listserver


[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

st: svy:probit, margeff and lincom problem


From   "Dimitriy V. Masterov" <dvmaster@gmail.com>
To   Statalist <statalist@hsphsun2.harvard.edu>
Subject   st: svy:probit, margeff and lincom problem
Date   Wed, 9 Aug 2006 00:02:59 -0400

I am trying to obtain the correct average marginal effect for age and
its square. I am getting a strange error message after using svy:
probit, margeff,  and lincom, which says that "matrix has missing
values". After looking at the trace, I believe the problem is that the
e(V_srs) matrix is missing. Also, using an ordinary probit seems to
work. Does anyone know of a way to deal with this?

My code is:

use "http://www.stata-press.com/data/r9/nhanes2f.dta";, clear
svy: probit heartatk height weight female black age age2
margeff, at(mean age=20 age2=0) replace
lincom age+2*20*age2

Dimitriy Masterov
*
*   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/



© Copyright 1996–2014 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index