Bookmark and Share

Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at statalist.org.


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

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


From   Austin Nichols <[email protected]>
To   [email protected]
Subject   Re: st: string output in tables truncated - how to fix?
Date   Tue, 25 Jun 2013 19:00:33 -0400

Stephanie Taylor <[email protected]>:

The format option is "cell format" (a numeric one), not label format.
You can create a new variable to tab:

g tq1=substr(q1,4,.)
svy: tab tq1, cell ci percent

On Tue, Jun 25, 2013 at 6:43 PM, Stephanie Taylor
<[email protected]> wrote:
> 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–2018 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   Site index