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

st: RE: Juhn-Murphy-Pierce Decomposition


From   "Jann Ben" <ben.jann@soz.gess.ethz.ch>
To   <statalist@hsphsun2.harvard.edu>
Subject   st: RE: Juhn-Murphy-Pierce Decomposition
Date   Tue, 6 Sep 2005 20:45:26 +0200

Ximena wrote:
> When I use the jmp ado-file to carry out the 
> juhn-murphy-pierce decomposition, I get a message error that 
> says: "samples not disjuntive".

This is a limitation of the -jmp- program (as stated in 
-help jmp-). The samples underlying the estimates used 
with -jmp- must be disjunctive, i.e. must not overlap. 
A work around is to expand the data. In Ximena's case:

 . generate long id = _n
 . expand 2 if pais!=20 & pais!=21
 . bysort id: generate byte region = _n==2
 . xi: reg pnjez mujer n_c ed md_l i.estrato raz cli_m /*
    */ if region
 . estimates store region
 . xi: reg pnjez mujer n_c ed md_l i.estrato raz cli_m /*
    */ if pais==10 & !region
 . estimates store Argentina
 . jmp region Argentina, reference(1) /*
    */ statistics(mean sd median d9010 d9050 d5010)

To remove the added cases later on, type

 . drop if region
 . drop region

ben

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