Stata The Stata listserver
[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

st: svymean error in oaxaca


From   Frederick Guy <f.guy@bbk.ac.uk>
To   statalist@hsphsun2.harvard.edu
Subject   st: svymean error in oaxaca
Date   Fri, 03 Jun 2005 13:54:38 +0100

Attempting to use the oaxaca command (*not* decomp), I get an error message which appears to be due to a problem with the command's use of svymean. I note elsewhere on this list that use of "if" terms with svymean can lead to errors, but I don't see what alternative I have with the oaxaca command.

Relevant bits of the log follow:

.
. reg driver/*
> */ revenue profit haul ltl spec ltlspec union unltl unspec /*
> */ if regulate==0

Source | SS df MS Number of obs = 770
-------------+------------------------------ F( 9, 760) = 38.09

[...]

. est store regulated
.
. reg driver/*
> */ revenue profit haul ltl spec ltlspec union unltl unspec /*
> */ if regulate==1

Source | SS df MS Number of obs = 898
-------------+------------------------------ F( 9, 888) = 24.80
[...]

. est store deregulated

. oaxaca regulated deregulated
(note: using svymean to compute vce of means of regressors)
subpop() does not contain a valid varname
r(198);

end of do-file
r(198);

*
* 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