I have a dataset looks like this:
Code:
* Example generated by -dataex-. To install: ssc install dataex clear input str2 id str8 location "1" "A" "1" "A" "1" "A" "1" "A" "1" "B" "1" "B" "1" "C" "2" "E" "2" "E" "2" "C" end
I wonder if anyone knows how to realize this in stata.
Thank you !
0 Response to How to replace the value of a variable by the most frequently occured value
Post a Comment