Hi,
Getting used to the program. I'm having some trouble with a loop. In the first column of the data (which I import from an excel file), I have Country names (Country is the variable). The idea is to replace the entire country names (Brasil, Armenia, Colombia, etc) in each row of the first column for the corresponding 3 digit letter. So, the idea is to loop the following:
replace Country = "ARM" in 1
replace Country = "AUT" in 2
replace Country = "AZE" in 3
replace Country = "BLR" in 4
replace Country = "BEL" in 5
replace Country = "BOL" in 6
replace Country = "BRA" in 7
replace Country = "BGR" in 8
replace Country = "COL" in 9
Any suggestions? Thank you very much!!
Related Posts with Help with loop
Reshape Long Missing Values ErrorMy dataset is in time series format. I am converting it to a panel using the following code: Code…
Merging 3 data setsGood evening all. I am looking for some help merging 3 data sets. All 3 data sets are sorted by pati…
Twoway line by countyHi everyone, For my Panel Data descriptive Analysis I am trying to graph the development of Chargin…
Different resutls between xtreg and xtivreg2 I recently ran into an issue with xtivreg2. I find that the coefficient estimates are so much diffe…
Doubt with power calculationsGreetings I am new to the forum., I am working with a categorical data set, I am trying to calculate…
Subscribe to:
Post Comments (Atom)
0 Response to Help with loop
Post a Comment