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

RE: st: RE: Converting string variable name into numbers


From   "Nick Cox" <[email protected]>
To   <[email protected]>
Subject   RE: st: RE: Converting string variable name into numbers
Date   Fri, 13 May 2005 17:40:39 +0100

In that case, it's likely that, contrary 
to the original statement, your variable 
is a numeric variable with value labels, 
not a string variable. 

Either way, the -tab, gen()- route is  
more general, as you can create several 
dummies at once. 

Nick 
[email protected] 

Michael Horowitz
 
> I tried that and it said "type mismatch"

Jose Valderrama

> > g language2=language=="English"

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