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

st: tabulate w/ fweights = 0


From   "Danielle H. Ferry" <[email protected]>
To   StataList <[email protected]>
Subject   st: tabulate w/ fweights = 0
Date   Fri, 23 May 2003 18:42:54 -0400

Dear StataListers,

I am using -tabulate- to produce 2-way tables of freq counts with fweights.
In some cases, my fweights are equal to zero. -tabulate- then excludes that
part of the table. 

More specifically, this is what I get:

. ta year parity [fw=abrtNum] if race==2 & state=="ID"

   Year of |      Parity (1)
conception |         0         1+ |     Total
-----------+----------------------+----------
      1992 |         2          0 |         2
      1996 |         1          1 |         2
      1997 |         1          1 |         2
      1998 |         4          3 |         7
      1999 |         4          0 |         4
-----------+----------------------+----------
     Total |        12          5 |        17

Since the fweight equals zero for the years 1993-1995, these years don't
appear in the resulting table. I would like these years to appear w/ just
zeros as freq counts. Any ideas? -tabulate- is not an option here, b/c I use
the -matcell- option to save these freq counts and then do matrix
operations. 

Suggestions welcome! Thanks!

-- 
Danielle H. Ferry
National Bureau of Economic Research
365 Fifth Avenue, 5th Floor
New York, NY 10016



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