[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]
Re: st: oaxaca2 command
Note that an update to the -oaxaca- package is now available from the
SSC Archive. The -oaxaca2- command does not change version anymore for
internal model estimation. That is, -oaxaca2- will now correctly work
with, e.g., -tobit- (Statat 9 only).
To install the update, type
. ssc install oaxaca, replace
or use the adoupdate command.
On 11/21/06, Ben Jann <email@example.com> wrote:
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 <firstname.lastname@example.org> 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: