Statalist


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: RE: st: regression using dummy variables


From   gjhxmu@sina.com
To   statalist<statalist@hsphsun2.harvard.edu>
Subject   Re: RE: st: regression using dummy variables
Date   Mon, 07 Sep 2009 21:09:26 +0800

Dear Maarten,
I knew -sheafcoef- from your posting, thank you!
I followed what you typed. However, an error message "p1 not found r(111)" was caused.
For example,
    sysuse nlsw88, clear
    recode occupation (11/12=4) (9/10=13)
    gen ln_w = ln(wage)
    xi: reg ln_w i.occupation married never_married 

    sheafcoef, latent( _I* ; married never_married) post
    test p1=p2

What is wrong with my typing?

Thank you for any help.

Best regards,
Rose. 

----- Original Message -----
From: Maarten buis <maartenbuis@yahoo.co.uk>
To: stata list <statalist@hsphsun2.harvard.edu>
Subject: RE: st: regression using dummy variables
Date: 2009-9-4 00:25:07

--- Amy Jennings wrote:
> I have run the sheafcoef command - can I just check that the
> values I need are p1, p2 etc and these can be interpreted in
> the same way as a standardised beta coefficient? 

Yes. You can also specify the -post- option and actually test
whether these two coefficients are the same using the -test-
command. So something like:

sheafcoef, ///
latent( _Ihighested_2 _Ihighested_3 _Ihighested_4 ; ///
_IMothers_B_2 _IMothers_B_3 ) ///
post

test p1 = p2

Hope this helps,
Maarten

--------------------------
Maarten L. Buis
Institut fuer Soziologie
Universitaet Tuebingen
Wilhelmstrasse 36
72074 Tuebingen
Germany

http://www.maartenbuis.nl
--------------------------




*
* For searches and help try:
* http://www.stata.com/help.cgi?search
* http://www.stata.com/support/statalist/faq
* http://www.ats.ucla.edu/stat/stata/

*
*   For searches and help try:
*   http://www.stata.com/help.cgi?search
*   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