[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]
Re: st: oaxaca2 command
The problem is that "_se" is stored in the main tobit equation in
Stata versions prior version 9. This fools oaxaca. oaxaca assumes
"_se" be another covariate in the model and tries to compute its mean.
Note that oaxaca2 will not work even if you use Stata 9 because the
version is reset to 8.2 internally. I will change oaxaca2 so that it
does not reset version. In the meanwhile, estimate and store your
models under version 9 and then apply oaxaca to the stored estimates
(not oaxaca2). In your case:
tobit lasset_s sratio ... if sexo==0, ll
est sti sexo0
tobit lasset_s sratio ... if sexo==1, ll
est sti sexo1
oaxaca sexo0 sexo1
Hope this helps.
On 11/21/06, Maria Cecilia Calderon <email@example.com> wrote:
Dear Ben and all,
I am trying to run an oaxaca decomposition using a Tobit
model for both groups. I obtain the model estimates, however, an error message
appears before the decomposition (variable _se not found). Below is my output.
Do you think you can help me?
Thanks a lot!
oaxaca2 lasset_s sratio cpiyear edumai edupai tierrapas_ss comun_d2 comun_d3
comun_d4, by(sexo) noisily cmd(tobit) cmdopts(ll)
variable _se not found
* For searches and help try: