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 on April 23, and its replacement, statalist.org is already up and running.


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

st: AW: confidence intervals, saved results, pweights


From   "Martin Weiss" <martin.weiss1@gmx.de>
To   <statalist@hsphsun2.harvard.edu>
Subject   st: AW: confidence intervals, saved results, pweights
Date   Sat, 17 Jul 2010 17:29:41 +0200

<> 

Try Roger`s -ssc d parmest-:


*************
capture which parmest
if _rc ssc install parmest

webuse fpc, clear
svyset [pw=weight]
svy: mean x
parmest, saving(myfile, replace)

u myfile, clear
l
*************



HTH
Martin


-----Ursprüngliche Nachricht-----
Von: owner-statalist@hsphsun2.harvard.edu
[mailto:owner-statalist@hsphsun2.harvard.edu] Im Auftrag von Ben Zipperer
Gesendet: Samstag, 17. Juli 2010 17:24
An: statalist@hsphsun2.harvard.edu
Betreff: st: confidence intervals, saved results, pweights

confidence intervals of variable means in survey data with pweights.

As I understand it, -svy: mean- will show the confidence interval, but
only returns the variance and mean in its e() results. Is it
recommended that I simply use these e() results to calculate my own
confidence interval (to match the one reported but not saved by -svy:
mean-), or is there a command like -ci- that saves as macros the
confidence interval results with pweighted survey data?

Additionally, after -svy: mean- why can I display the elements of some
variance matrices but not others? For example,

. webuse fpc, clear

. svyset [pw=weight]

      pweight: weight
          VCE: linearized
  Single unit: missing
     Strata 1: <one>
         SU 1: <observations>
        FPC 1: <zero>

. svy: mean x
(running mean on estimation sample)

Survey: Mean estimation

Number of strata =       1          Number of obs    =       8
Number of PSUs   =       8          Population size  =      27
                                    Design df        =       7

--------------------------------------------------------------
             |             Linearized
             |       Mean   Std. Err.     [95% Conf. Interval]
-------------+------------------------------------------------
           x |   5.448148    .723725       3.73681    7.159486
--------------------------------------------------------------

. di el(e(V_srs),1,1)
.54734078

. di el(e(V),1,1)
matrix operators that return matrices not allowed in this context

thanks,
Ben
*
*   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   |   Site index