--- carmen gamarra <[email protected]> wrote:
> What I need is a command that allows me to get all the categories
> of one variable, including those with zero values.
Conceptually, this would require Stata to have a list of values that
you want to display. In -tab- Stata obtains that list from the values
that actually occur in the data. This is a sensible default, but if a
value that you want to see occurs zero times in the data, than it will
not be displayed. Ben Jann's -fre- can obtain this list of values from
either the value labels you have attached to your variable or you can
specify all the values you want to see. To install -fre-, type in
Stata:
ssc install fre
followed by -help fre- to read more on how to exactly use this command.
Hope this helps,
Maarten
-----------------------------------------
Maarten L. Buis
Department of Social Research Methodology
Vrije Universiteit Amsterdam
Boelelaan 1081
1081 HV Amsterdam
The Netherlands
visiting address:
Buitenveldertselaan 3 (Metropolitan), room N515
+31 20 5986715
http://home.fsw.vu.nl/m.buis/
-----------------------------------------
*
* 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/