Statalist


[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

st: Re: tab, table, or list display control for row header


From   "Michael Blasnik" <michael.blasnik@verizon.net>
To   <statalist@hsphsun2.harvard.edu>
Subject   st: Re: tab, table, or list display control for row header
Date   Fri, 07 Sep 2007 17:45:37 -0400

I think you just need to format the variables before tabulating. Try:

format tac_err* %8.0f

and then run your tabulate loops

Michael Blasnik

----- Original Message ----- From: "Jennifer S. Earl" <jearl@soc.ucsb.edu>
To: <statalist@hsphsun2.harvard.edu>
Sent: Friday, September 07, 2007 5:35 PM
Subject: st: tab, table, or list display control for row header



My problem has to do with display controls so that my case id numbers show up in full form, versus in scientific notation.

In more detail, I produce a long series of tables (about a 100) in two forvalues loop:

forvalues i = 1(1)9 {
tab tac_err00`i' if sum(tac_err00`i')>0 & tac_err00`i'>0
}

forvalues i = 10(1)99 {
tab tac_err0`i' if sum(tac_err0`i')>0 & tac_err0`i'>0
}

A sample table from this output is:

9: Tactic |
value is |
invalid | Freq.
----------+-----------
0 | 42
2.01e+07 | 1
2.01e+07 | 1
2.01e+07 | 2
2.01e+07 | 1

My problem is that I want the values in the row headers to show up as full numbers, versus in scientific notation.

I have tried using table instead of tabulate, list instead of table (as in:
forvalues i = 1(1)9 {
list eventid if sum(tac_err00`i')>0 & tac_err00`i'>0
}

and, all of those have the same problem.

I can't figure out a way to control the display of the row header. When the id numbers are shorter, it works fine, but at the length my ids are at now, it always seems to do this.

Any ideas?

Thanks in advance,

Jenn

*********************************
Jennifer Earl
*
*   For searches and help try:
*   http://www.stata.com/support/faqs/res/findit.html
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/



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