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

Re: st: recoding strings


From   n j cox <n.j.cox@durham.ac.uk>
To   statalist@hsphsun2.harvard.edu
Subject   Re: st: recoding strings
Date   Fri, 16 Sep 2005 12:09:53 +0100

Not so far as I know. You could -encode-
your string variable, then apply -recode-.
Otherwise it is a matter of a series
of -replace-s.

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

>>> Thushyanthan Baskaran (edited)

I would like to recode a string variable. However, -recode- accepts numeric values only. Is there a similar command for string variables?
*
* 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