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
Simultaneously run through two forvalues loopsDear statalist, I'm trying to program the following commands more mechanically: Code: rename inte…
Drop if ALL specified variables fulfill a certain conditionDear statalist, is there a way to write the following command Code: drop if intention1==9 & i…
combining datasets with different formats of a variable and ts valuesI have a dataset that includes information on naic codes, years, the quarter of those years in the f…
Vuong test for hedonic price model - RegressionHi all, I am trying to estimate a hedonic price model. The first step used is estimating the Box Cox…
Adding extra years to an existing date variableDear Statalist, I have a date variable created the following way: Code: gen PartDat_gli = . repl…
Subscribe to:
Post Comments (Atom)
0 Response to using a loop to remove special characters and destring a variable
Post a Comment