Statalist


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

RE: st: oaxaca with subpop in svy


From   "Maggie Hicken" <[email protected]>
To   <[email protected]>
Subject   RE: st: oaxaca with subpop in svy
Date   Wed, 15 Jul 2009 15:51:54 -0400

Thank you!

-----Original Message-----
From: [email protected]
[mailto:[email protected]] On Behalf Of Austin Nichols
Sent: Wednesday, July 15, 2009 3:48 PM
To: [email protected]
Subject: Re: st: oaxaca with subpop in svy

Maggie Hicken<[email protected]> :
Also note that the manual approach matches the output, as it should:

webuse nhanes2, clear
g male=sex==1 if sex<.
g mblack=black if male==1
oaxaca bpsystol weight, by(mblack) svy
oaxaca bpsystol weight, by(black) svy(,subpop(male))

On Wed, Jul 15, 2009 at 3:44 PM, Maggie Hicken<[email protected]> wrote:
> That worked (the comma before 'subpop' was missing!) -- thanks so much!
>
>
> -----Original Message-----
> From: [email protected]
> [mailto:[email protected]] On Behalf Of Ben Jann
> Sent: Wednesday, July 15, 2009 3:41 PM
> To: [email protected]
> Subject: Re: st: oaxaca with subpop in svy
>
> It should be possible to apply oaxaca to a subpop. The syntax for the
> svy() option in oaxaca is
>
>  svy(vcetype, svy_options)
>
> where vcetype and svy_options are as described in -help svy-. For
> example, among the svy_options is -subpop()-. That is, you can type
>
>  . oaxaca ..., svy( , subpop(...))
>
> Note the comma before subpop().
>
> ben
>
> On Wed, Jul 15, 2009 at 8:01 PM, Maggie Hicken<[email protected]> wrote:
>> Hi,
>>
>> I would like to use the 'oaxaca' command using 'svy' in NHANES, but need
> to
>> use the 'subpop' option of 'svy' to have the correct SEs.  Is there a way
> to
>> use the 'subpop' option?  Or does anyone have an alternative that would
>> yield the SEs that I need in Oaxaca with a complex survey design?
>>
>> Thanks for your help!
>> Maggie

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