Bookmark and Share

Notice: On March 31, it was announced that Statalist is moving from an email list to a forum. The old list will shut down at the end of May, and its replacement, statalist.org is already up and running.


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

Re: st: SVY medians and Elixhauser


From   Stas Kolenikov <skolenik@gmail.com>
To   "statalist@hsphsun2.harvard.edu" <statalist@hsphsun2.harvard.edu>
Subject   Re: st: SVY medians and Elixhauser
Date   Fri, 12 Apr 2013 08:50:22 -0500

Never mind the first table, Mike, it's just I should've hidden some
intermediate calculations better in my code :-\. (For those interested
in technicalities -- these are deviations from the corresponding
percentage points as needed by the Woodruff method.)

-- Stas Kolenikov, PhD, PStat (SSC)
-- Senior Survey Statistician, Abt SRBI
-- Opinions stated in this email are mine only, and do not reflect the
position of my employer
-- http://stas.kolenikov.name



On Fri, Apr 12, 2013 at 2:25 AM, Mike Butterfield
<mcbutterfield@gmail.com> wrote:
> Thanks Stas, I think I got it to work!  So it looks like the median
> cost of a person with an infection is $37192, which I get from the
> second table.  Could you clue me in to what's being described in the
> first table though?
> -Mike
>
> . epctile totchg, p(50) over(infection) svy speclab
> (running mean on estimation sample)
> ...
>
> --------------------------------------------------------------
>              |             Linearized
>         Over |       Mean   Std. Err.     [95% Conf. Interval]
> -------------+------------------------------------------------
> __000006     |
>            0 |  -5.69e-06   .0110628     -.0217157    .0217043
>            1 |   -.000291   .0201521     -.0398379     .039256
> --------------------------------------------------------------
>
> Percentile estimation
> ------------------------------------------------------------------------------
>              |             Linearized
>       totchg |      Coef.   Std. Err.      z    P>|z|     [95% Conf. Interval]
> -------------+----------------------------------------------------------------
>        p50_0 |      23533        626    37.59   0.000     22306.06    24759.94
>        p50_1 |      37192       1691    21.99   0.000      33877.7     40506.3
> *
> *   For searches and help try:
> *   http://www.stata.com/help.cgi?search
> *   http://www.stata.com/support/faqs/resources/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/faqs/resources/statalist-faq/
*   http://www.ats.ucla.edu/stat/stata/


© Copyright 1996–2014 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   Site index