my data are a five point likert scale with 21 questions. The answers were recorded as string variables and some have special characters. My charlist result is as follows
. return list
macros:
r(chars) : "/KNSabegijklmnpsu"
r(sepchars) : "/ K N S a b e g i j k l m n p s u "
r(ascii) : "47 75 78 83 97 98 101 103 105 106 107 108 109 110 .."
How do I use the code "foreach in a loop to remove the special characters in all the rows and columns and to destring the variables?
Related Posts with using a loop to remove special characters and destring a variable
Partial options and excluded instruments in xtivreg2Dear all, I am looking to the impact of immigration on firm level outcomes during the period 2006-2…
Reshaping categorical variablesHello Statalisters, I am facing the following problem. This is what my data looks like: Code: inp…
Treatments before running fractional probit modelHi, I am using a dataset for 25 countries over the period of 5 years (balanced panel) with a few mis…
Panel data with small T small N and endogenous variableI have a panel data with small T (T = 11) small N (N=18) with 01 endogenous variable. Which methodol…
rangestat questionHellow I have a question in rangestat why do I always get the result that never calculates? My mean …
Subscribe to:
Post Comments (Atom)
0 Response to using a loop to remove special characters and destring a variable
Post a Comment