[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]
st: RE: converting bracketed to continuos values
> 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
. destring myvar, ignore() generate(newvar)
See on-line help for -destring-.
* For searches and help try: