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
preserve
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
restore
exit
*
* 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/