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

From |
"Nick Cox" <n.j.cox@durham.ac.uk> |

To |
<statalist@hsphsun2.harvard.edu> |

Subject |
RE: st: I want to obtain Tables with all categories of every variables |

Date |
Mon, 2 Feb 2009 17:11:59 -0000 |

In addition to several other answers, some of which seem to tackle Carmen's problem and others which could be useful anyway, there are also -groups- and -tabcount- from SSC. A write-up accessible to all, SJ subscribers or not, is at SJ-3-4 pr0011 . . . . . . . . Speaking Stata: Problems with tables, Part II . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . N. J. Cox Q4/03 SJ 3(4):420--439 (no commands) reviews three user-written commands (tabcount, makematrix, and groups) as different approaches to tabulation problems This can be seen on-line at <http://www.stata-journal.com/sjpdf.html?articlenum=pr0011> The key problem behind Carmen's problem was well explained by Maarten Buis: How is Stata to know about values that might exist as far you are concerned but don't exist in the data? Ben Jann's -fre- implements one natural Stataish idea, that for categorical variables a value label will be defined. -tabcount- in particular implements a more mundane idea: you spell out to Stata which values you want to tabulate. It also adds a less usual twist: you can specify bins using inequalities (which need not be disjoint). Nick n.j.cox@durham.ac.uk carmen gamarra > I want to obtain tables with all categories of every variables, even those of value=zero > * * 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/

**References**:**Re: st: I want to obtain Tables with all categories of every variables***From:*Sergiy Radyakin <serjradyakin@gmail.com>

- Prev by Date:
**st: stdes, SD for time at risk?** - Next by Date:
**st: Overriding endogenous variables in a VAR model** - Previous by thread:
**Re: st: I want to obtain Tables with all categories of every variables** - Next by thread:
**st: stdes, SD for time at risk?** - Index(es):

© Copyright 1996–2017 StataCorp LLC | Terms of use | Privacy | Contact us | What's new | Site index |