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

Re: st: svytotal - saved results in Stata 8.2


From   Nick Winter <nw53@cornell.edu>
To   statalist@hsphsun2.harvard.edu
Subject   Re: st: svytotal - saved results in Stata 8.2
Date   Fri, 09 Sep 2005 13:47:46 -0400


-svytotal- is an e-class command.

Type -ereturn list- and you will see what it returns. (And then -mat list e(b) and mat list e(V), or whatever you are interested in.

-return list- is showing you some intermediate results returned by a subroutine of -svytotal-.

Nick WInter


At 01:12 PM 9/9/2005, you wrote:


Dear all,

I am not sure if this has been reported but when I use
-svytotal- in Stata 8.2, the saved results do not
match the output:

.  svytotal nons

Survey total estimation

pweight:  discwt
Number of obs    =   7521922
Strata:   stratum
Number of strata =       623
PSU:      hospid
Number of PSUs   =     10394

Population size  =  37192136

------------------------------------------------------------------------------
   Total |   Estimate    Std. Err.   [95% Conf.
Interval]        Deff
---------+--------------------------------------------------------------------
    nons |   37153514      395094    3.64e+07
3.79e+07    818258.6
------------------------------------------------------------------------------

. return list

scalars:
                 r(N) =  7521922
          r(N_strata) =  1
             r(N_psu) =  7521922
             r(N_pop) =  7521922
          r(estimate) =  .9987735847300729
               r(Var) =  1.62845525174e-10
           r(Var_srs) =  1.62845525165e-10
           r(errcode) =  0

-svytotal- report a population estimate of over 37
million and saved results r(estimate) is less than 1.
What am I missing?

Thank you,
Ricardo.

Ricardo Ovaldia, MS
Statistician
Oklahoma City, OK




______________________________________________________
Click here to donate to the Hurricane Katrina relief effort.
http://store.yahoo.com/redcross-donate3/
*
*   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/
________________________________________________________
Nicholas J. G. Winter 607.255.8819 t
Assistant Professor 607.255.4530 f
Department of Government nw53@cornell.edu e
Cornell University falcon.arts.cornell.edu/nw53 w
308 White Hall
Ithaca, NY 14853-4601

*
* 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