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/