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

st: Data management question

From   "Susan Olivia" <>
Subject   st: Data management question
Date   Wed, 15 Jul 2009 18:26:02 -0700

Dear Stata lister,

I have a variable (say number of days) and is a string
variable. This variable is represented by XXXX (basically
the number of X denotes the number of days). 

I would like to create a numeric value for this variable
(i.e. 4 crosses = 4) . Is there a way I can easily do this
in Stata? I tried the 'encode' and 'destring' commands, but
these commands didn't do what I after. 

Thanks in advance for the tips,


*   For searches and help try:

© Copyright 1996–2015 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index