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: RE: Features for Stata 14
From
Jeph Herrin <[email protected]>
To
[email protected]
Subject
Re: st: RE: Features for Stata 14
Date
Thu, 13 Feb 2014 14:09:48 -0500
I'd like for tab, table, etc to be able to specify the width of the left
margin - so that they can be aligned on the page. Eg,
. sysuse auto
. tab make in 2
Make and Model | Freq. Percent Cum.
-------------------+-----------------------------------
AMC Pacer | 1 100.00 100.00
-------------------+-----------------------------------
Total | 1 100.00
. tab foreign
Car type | Freq. Percent Cum.
------------+-----------------------------------
Domestic | 52 70.27 70.27
Foreign | 22 29.73 100.00
------------+-----------------------------------
Total | 74 100.00
This is very annoying when running lots of tabs on the same page - I
often end up using my own version, just to get around this nusiance.
J
On 2/13/2014 1:31 PM, Nick Cox wrote:
Thanks for the courtesy but the history of -tabnl- began and ended
with that post, at least as far as I am concerned, so you have missed
nothing.
One line is that this is typically three commands without using any
user-written stuff:
. sysuse auto, clear
(1978 Automobile Data)
. numlabel origin, add
. tab foreign
Car type | Freq. Percent Cum.
------------+-----------------------------------
0. Domestic | 52 70.27 70.27
1. Foreign | 22 29.73 100.00
------------+-----------------------------------
Total | 74 100.00
. numlabel origin, remove
. tab foreign
Car type | Freq. Percent Cum.
------------+-----------------------------------
Domestic | 52 70.27 70.27
Foreign | 22 29.73 100.00
------------+-----------------------------------
Total | 74 100.00
but if you are saying that you want it as an option to -tabulate-,
that's presumably noted by StataCorp.
Nick
[email protected]
On 13 February 2014 18:14, Bert Lloyd <[email protected]> wrote:
Add a "both" option to -tab- that displays both numeric values and
value labels, i.e. similar to -tabnl- from Nick Cox found here:
http://www.stata.com/statalist/archive/2007-03/msg00601.html
(There may be a more recent or authoritative version of -tabnl-
elsewhere, apologies if so. -findit tabnl- did not return anything.)
*
* 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/
*
* 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/
*
* 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/