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
xtheckman on stata 16Hi , I am using panel data and Xtheckman command. It keeps running endless Iterations for hours and …
Saving J-StatisticHello everyone, I want to test the over-identification restrictions using 'estat overid'. I then wa…
error with mi estimate: factor-variable operators not allowedHi everyone, In the code below, I am trying to compare the coefficients across two regressions. Howe…
Convert double variables to floatHi, I am currently "translating" a piece of SAS code to Stata. Each step, I verify that both my Sta…
Quasi-Poisson regression commandI have been instructed to perform a quasi-Poisson regression analysis by my supervisor. I have gone …
Subscribe to:
Post Comments (Atom)
0 Response to Using detring to remove special characters
Post a Comment