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

st: RE: List options


From   "Nick Cox" <[email protected]>
To   <[email protected]>
Subject   st: RE: List options
Date   Wed, 28 Jul 2004 23:29:30 +0100

No, but there's a better way. Just write your own wrappers 
e.g. 

program qlist
	version 8 
	syntax varlist [if] [in] [, * ]
	marksample touse, novarlist
	qui count if `touse' 
	if r(N) == 0 error 2000

	list `varlist' if `touse', sep(4) noobs `options' 
end 

Then you say e.g. 

qlist <varlist> if year > 1960 

Your preferences are then hard-wired. 

(Not tested) 

Nick 
[email protected] 

> -----Original Message-----
> From: [email protected]
> [mailto:[email protected]]On Behalf Of Michael S.
> Hanson
> Sent: 28 July 2004 23:05
> To: [email protected]
> Subject: st: List options
> 
> 
> 	Is there a way to "permanently" set options for the 
> -list- command?  
> For example, when working with time series data it would be 
> helpful if 
> the list command could be set to always display the separator every 4 
> (quarterly) or 12 (monthly) observations, and to not show the 
> observation numbers.  I find I regularly forget to add 
> -,sep(#) noobs- 
> at the end of each list command, and end up typing it twice....  TIA.
> 
>                                          -- Mike
> 
> *
> *   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–2024 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index