Statalist The Stata Listserver


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

st: RE: help required using the -ds- command


From   "Nick Cox" <n.j.cox@durham.ac.uk>
To   <statalist@hsphsun2.harvard.edu>
Subject   st: RE: help required using the -ds- command
Date   Wed, 28 Feb 2007 15:55:37 -0000

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

Eamonn O'Brien
 
> I'm am trying to obtain a list of my variable names in one column ( I
> have over 100 variables).  I haven't achieved this but I have been
> experimenting with the -ds- command, specifically the options
> 'varwidth(#)' and 'skip(#)'.  Can anyone help with this?

I dom't think -ds- supports this. Its original intent was primarily
to provide a _compact_ list! You can get this directly with a loop

foreach v of var _all { 
	di "`v'"
} 
 
> One small point, the help file for the -ds- option 'skip' states the
> default is skip(12) , but if I use skip(11) the following error is
> returned 'skip() should be in the range 1..10'.

This is a typo in the help. The default is -skip(2)-. 

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