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

st: Update to decomp


From   Ian Watson <[email protected]>
To   statalist <[email protected]>
Subject   st: Update to decomp
Date   Sat, 29 Jan 2005 12:02:01 +1100

Thanks to Kit Baum an update to -decomp- has been posted to the SSC
archives. To install, just type

ssc install decomp, replace

from inside Stata.


Description of decomp:

      decomp computes Blinder-Oaxaca wage decompositions. It compares
      the results from two regressions, using intermediate commands
      (himod and lomod), and produces a  table of output containing the
      decompositions. These decompositions show how much of  the wage
      gap is due to differing endowments between the two groups, and
      how much is due to discrimination (regarded as the portion of the
      wage gap due to the combined effect of  coefficients and slope
      intercepts for the two groups). 

      
The changes to this version are two-fold:

1 -decomp- now supports tobit regression

2 -decomp- now supports Heckman regression automatically, without the
need to specify a heck option.

The implications of 2) are that users with existing syntax may need to
remove the term "heck" from their code. More details can be found in
the help file.


For those interested in hacking ado files, the line

if e(cmd)=="heckman" | e(cmd)=="tobit"

can be easily modified to include other Stata regression commands if
you find that -decomp- fails on a particular type of regression. The
error message is usually something like "_cons not found" and this
indicates that the e(b) vector is not a "standard" one, but has
additional rows. The code which follows this line deals with these
additional rows, so by including the Stata command name (as returned
in e(cmd)) in that line, -decomp- should work successfully. Please
contact me if you try this and it doesn't work.



      
-- 
Kind regards,
 Ian                          

=================================
Ian Watson
Senior Researcher
acirrt
University of Sydney
NSW 2006
Australia

Phone: 02 9351 5622
  Fax: 02 9351 5615

Email: [email protected]
  Web: www.acirrt.com
================================

*
*   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–2024 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index