Bookmark and Share

Notice: On March 31, it was announced that Statalist is moving from an email list to a forum. The old list will shut down on April 23, and its replacement, statalist.org is already up and running.


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

st: string output in tables truncated - how to fix?


From   Stephanie Taylor <smtaylor@co.shasta.ca.us>
To   "statalist@hsphsun2.harvard.edu" <statalist@hsphsun2.harvard.edu>
Subject   st: string output in tables truncated - how to fix?
Date   Tue, 25 Jun 2013 15:43:49 -0700

Hello,

I am trying to analyze a survey dataset in which most of the response options are categorical string variables.  I used the following command and the row output for the categories in the table was truncated.  Unfortunately the categories in some of the questions are identical in the first few characters and since the data is weighted it is difficult to decipher what is what.  

svy linearized : tabulate q1, cell ci percent

I tried overriding the display format as below both with the default 12 setting and the length of 18.  I got the error message "invalid %format" for each attempt.  Q1 is a str18 variable with format %18s.

svy linearized : tabulate q1, cell ci percent format(%12s)
svy linearized : tabulate q1, cell ci percent format(%18s)

What can I do to make the table display properly?

Thanks,

Stephanie Taylor

*
*   For searches and help try:
*   http://www.stata.com/help.cgi?search
*   http://www.stata.com/support/faqs/resources/statalist-faq/
*   http://www.ats.ucla.edu/stat/stata/


© Copyright 1996–2014 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   Site index