Bookmark and Share

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: selectvars and factor variables


From   Maarten buis <maartenbuis@yahoo.co.uk>
To   statalist@hsphsun2.harvard.edu
Subject   Re: st: selectvars and factor variables
Date   Wed, 26 Jan 2011 12:52:31 +0000 (GMT)

--- On Wed, 26/1/11, A Loumiotis wrote:
> So I would like to substitute in my variable list
> the factor variables with the dummy variables that "xi:"
> creates and then run selectvars on my expanded variable list.
> How can I do that?
> 
> For example:
> 
> local myvarlist var1 var2 i.var3 
> local myevarlist var1 var2 Ivar3_2-4

See -help unab-

Hope this helps,
Maarten

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

http://www.maartenbuis.nl
--------------------------



      

*
*   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–2018 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   Site index