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/