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
Perplexing decimal issue with F testHi all, I've been running ANOVAs and bonferroni posthocs and sometimes my mean table has decimal pl…
Bayes Factors for t-testHi Listers, A reviewer has suggested presenting Bayes Factors. I am wondering how to do this after…
Bar graph, put bars in specific orderDear all, I produced a bar graph over income group, I'm trying to order the bars as lower-middle, u…
create new variable from likert scaleHi I have many likert scale responses from my survey in 3-4 different categories of subjects (e.g. e…
PPML gravity estimation with disaggregated dataHello, I have a panel dataset of bilateral trade disaggregated at the HS4 sector level and I would l…
Subscribe to:
Post Comments (Atom)
0 Response to Help with loop
Post a Comment