Stata The Stata listserver
[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

st: RE: RE: default version of abbrev(n) for list?


From   "Daniel Waxman" <dan@amplecat.com>
To   <statalist@hsphsun2.harvard.edu>
Subject   st: RE: RE: default version of abbrev(n) for list?
Date   Tue, 14 Jun 2005 08:57:05 -0400

Thank you very much.  I will incorporate this into my startup routine.  If
there were a suggestion box for Stata 10, however, I would put this in it.

-----Original Message-----
From: owner-statalist@hsphsun2.harvard.edu
[mailto:owner-statalist@hsphsun2.harvard.edu] On Behalf Of Nick Cox
Sent: Monday, June 13, 2005 11:22 AM
To: statalist@hsphsun2.harvard.edu
Subject: st: RE: default version of abbrev(n) for list?

No; I don't think so. But you can write your own command wiring this in.  

program mylist
	version 8 
	syntax [varlist] [if] [in] [, abbrev(int 16) * ] 
	list `varlist' `if' `in', abbrev(`abbrev') `options' 
end 

You can even allow abbreviations: 

program myl
	version 8 
	mylist `0' 
end 

program myli
	version 8 
	mylist `0' 
end 

program mylis
	version 8 
	mylist `0' 
end 

Nick 
n.j.cox@durham.ac.uk 

Daniel Waxman

> Is there any way to change the default for .list so that 
> variable names are
> not abbreviated, or at least lengthened, without having to type
> ',abbrev(16)' every time?
> 
> (currently using Stata 8, but soon to be Stata 9) 
 

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


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