Nahid Tabatabai
>
> I have an account balance variable with bracketed values
> for some of the observations. I need to convert those
> bracket values to continuos values. What is the best way of
> doing that? What type of regression I can use for this
> variable? It's the dependent variable.
>
I guess this means that you have a variable with non-numeric
characters, presumably [], which Stata will be holding
as a string variable.
If so, then use -destring- to strip the "[]"
. destring myvar, ignore([]) replace
or (safer)
. destring myvar, ignore([]) generate(newvar)
See on-line help for -destring-.
Nick
[email protected]
*
* 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/