Statalist


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

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


From   "Jennifer S. Earl" <[email protected]>
To   [email protected]
Subject   st: tab, table, or list display control for row header
Date   Fri, 07 Sep 2007 14:35:16 -0700

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
Director, Center for Information Technology and Society
Associate Professor of Sociology
University of California, Santa Barbara
Santa Barbara, CA 93106-9430

P: (805) 893-7471
F: (805) 893-3324
*********************************
*
* 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–2024 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index