Statalist


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: st: local containing (all) variables' names in a dataset


From   Maarten buis <[email protected]>
To   stata list <[email protected]>
Subject   RE: st: local containing (all) variables' names in a dataset
Date   Mon, 17 Aug 2009 13:50:30 +0000 (GMT)

--- Augusto Cadenas wrote:
> The issue for me is how to create a local that contains the names
> of all variables in each dataset, except for "name" and "id". 

ds name id, not
local rest_vars "`r(varlist)'"

Hope this helps,
Maarten

-----------------------------------------
Maarten L. Buis
Institut fuer Soziologie
Universitaet Tuebingen
Wilhelmstrasse 36
72074 Tuebingen
Germany

http://home.fsw.vu.nl/m.buis/
-----------------------------------------


      

*
*   For searches and help try:
*   http://www.stata.com/help.cgi?search
*   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