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: stubwidth(#) for output other than table?


From   Nick Cox <[email protected]>
To   "[email protected]" <[email protected]>
Subject   Re: st: stubwidth(#) for output other than table?
Date   Fri, 25 Nov 2011 18:26:48 +0000

Short answer is No. It depends partly on age of program or command and partly how much is being displayed on each line.

What global settings there are should be documented under -set-, including one of log line size as I recall (I'm travelling and away from Stata), but I doubt it affects -summarize-, which is I think rather old code written without wider monitors in mind.

Nick

On 25 Nov 2011, at 18:08, "Ariel Linden, DrPH" <[email protected]> wrote:

Hi All,

On a somewhat regular basis I run into the problem of having the variable
name truncated in the output table (whether that output table be after
regression or other procedure). In -table- there is a stubwidth(#) option that "specifies the width, in units of digit widths, to be allocated to the
left stub of the table."

Is there a generic alternative to stubwidth for other output? There may be user-written programs that allocate a certain width to the first column that may result in truncated variable names. It would be helpful if this could be
overridden in a simple manner.

As an example, I ran -sum- on a couple of variables. As shown, the variable
names in the first column are truncated

. summarize  tumor_lymphoma_cci metastatic_solid_cci

   Variable |       Obs        Mean    Std. Dev.       Min        Max
-------------+--------------------------------------------------------
tumor_lymp~i |     72210    .0104002    .1014505          0          1
metastatic~i |     72210    .0017311    .0415703          0          1


*
*   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/


© Copyright 1996–2018 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   Site index