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

st: append


From   Phung Lang <[email protected]>
To   [email protected]
Subject   st: append
Date   Mon, 6 Jan 2003 08:46:34 +0100

Dear All

I am attempting to append 20 smaller files together to produce one large
dataset with 20 different strata.  When I describe and tab, this is what
comes out:


         kt |      Freq.     Percent        Cum.
------------+-----------------------------------
          1 |        572        5.77        5.77
          2 |        230        2.32        8.08
          3 |        399        4.02       12.11
          5 |        542        5.46       17.57
          6 |        600        6.05       23.62
          7 |        553        5.57       29.19
          9 |        416        4.19       33.38
         10 |        472        4.76       38.14
         11 |        418        4.21       42.35
         12 |        630        6.35       48.70
         13 |        603        6.08       54.78
         14 |        426        4.29       59.08
         15 |        384        3.87       62.95
         16 |        496        5.00       67.95
         17 |        621        6.26       74.21
         18 |        552        5.56       79.77
         19 |        586        5.91       85.68
         20 |        559        5.63       91.31
         22 |        414        4.17       95.48
         25 |        448        4.52      100.00
------------+-----------------------------------
      Total |       9921      100.00

              storage  display     value
variable name   type   format      label      variable label
-------------------------------------------------------------------------------
kt              byte   %8.0g
fwtia           float  %9.0g



After setting the survey components and running svy, Stata does not
recognize that there should be 20 strata in my new dataset. Two strata also
disappear when I set the pweight

. svymean shotdi*

Survey mean estimation

pweight:  <none>                                  Number of obs(*) =      8488
Strata:   kt                                      Number of strata =        17
PSU:      cluster                                 Number of PSUs   =       665
                                                  Population size  =      8488


. svyset pweight fwtia

. svymean shotdi*

Survey mean estimation

pweight:  fwtia                                   Number of obs    =      4477
Strata:   kt                                      Number of strata =        15
PSU:      cluster                                 Number of PSUs   =       540
                                                  Population size  = 29590.974


What could have gone wrong? Any advice would be greatly appreciated!

Thanks in advance.
Phung


Institute for Social and Preventive Medicine (ISPM)
at the University of Zurich
Sumatrastrasse 30
CH-8006 Zurich, Switzerland

Tel: +41-1-634 46 72 /13
Fax: +41-1-634 49 84
email: [email protected]


*
*   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–2024 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index