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

Re: st: stubwidth in table

From   "Joseph Coveney" <>
To   "Statalist" <>
Subject   Re: st: stubwidth in table
Date   Thu, 30 Oct 2008 12:35:35 +0900

Haiyong Xu wrote:

I want to generate a frequency table for one variable which has long (may
>40 digits, the maximum of stubwidth) string value. Is there any way to
display the complete value of the variable in the table?


You might want to try -table-.  It can adjust widths.  If I recall
correctly, it won't show zero-count cells, however.

An alternative is to use -contract- and then -list , string(40)-.

Joseph Coveney

sysuse auto, clear
decode foreign, generate(car_type)
contract car_type, freq(count)
foreach var of varlist _all {
   char define `var'[varname] "`: variable label `var''"
list , noobs abbreviate(20) string(40) subvarname

*   For searches and help try:

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