Hi all,
I'm trying to remove special characters from a string variable. I have two variables. One contains only "-", another contains "-" and "+".
I successfully removed "-" from the first variable. When I try to remove "-" and "+" together, The Stata shows 'option "+ not allowed'. Here is my code: destring var, gen(new) ignore("-", "+"). How can I fix this? Thank you!
Related Posts with Using detring to remove special characters
quantile regression with interaction termsHello, I'm confused about how to include an interaction variable in my regression. Indeed, I run a q…
Facing trouble with the moment evaluation program of GMM, need your kind helpI was writing a moment evaluator GMM program with a special purpose. However, complying with the con…
Diffrence in Diffrence Panel regression with varying treatment startHi everyone, I have a quick question regarding a difference in difference regression. I have panel …
Forecasting stockreturns following earnings annoucementsHello everyone on Statalist, I’m running into an issue regarding forecasting realized volatility us…
mergeHi, Please can you help me. I have two datasets each with 3 variables. in the first, the variables a…
Subscribe to:
Post Comments (Atom)
0 Response to Using detring to remove special characters
Post a Comment