Stata The Stata listserver
[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

st: using svymean output


From   jerosenb@hcs.harvard.edu (Janet E. Rosenbaum)
To   statalist@hsphsun2.harvard.edu
Subject   st: using svymean output
Date   Tue, 21 Sep 2004 08:51:16 -0400 (EDT)

Sorry if this is a FAQ, but I didn't see it in a search on the mailing
list archives or in help or in looking through the FAQ.

Two part question:

1.  Where is there a list of the designations for the output for a command?
For instance, the example below is on the FAQ.  I tried guessing how
to display the estimate, like _mean[x] and _est[x] to no avail.

svymean x
Mean |   Estimate    Std. Err.   [95% Conf. Interval]        Deff
---------+--------------------------------------------------------------------
   x |   7.497354    1.154104    4.925852    10.06886    1.826019

di _se[x]*sqrt($S_E_nobs/S_E_deff[1,1])
    3.9138278

Also, is there some way just to treat the output as a matrix without the
names?

2.  Eventually, for y a binary variable, I'd like to do
svymean x, by(y)
and ttest whether estimates are equal at the two levels of y.

How would I call the components of this?

Mean   Subpop. |   Estimate    Std. Err.       Deff         Obs
---------------+--------------------------------------------------------------
x              |
        y==0   |   6.252655    .2913123    .9953564        2402
        y==1   |   5.087685    .6354503     1.30706         214

Janet
-- 
Janet Rosenbaum                                 jerosenb@fas.harvard.edu
PhD Candidate in Health Policy, Harvard GSAS
Harvard Injury Control Research Center, Harvard School of Public Health
*
*   For searches and help try:
*   http://www.stata.com/support/faqs/res/findit.html
*   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