Hello there, I am a beginner in Stata and I working with panel data for a gravity equation.
I want to create a landlocked dummy variable so I know that I should generate a new variable and replace the values to 1= if the country is landlocked, but I don't know how to specify this in Stata, that those countries should take the value of 1.
gen landlocked = 0
replace landlocked=1 if ?????
For instance, I am using iso3 code names
AFG ARM AUT AZE BFA BDI BOL BTN BWA CAF CHE CZE ETH HUN KGZ KAZ LAO LSO LUX MKD MLI MNG MWI NER NPL PRY RWA SVK SWZ TCD TJK TKM UGA UZB ZMB ZWE
Any ideas of what should I do? Thanks!
I want to create a landlocked dummy variable so I know that I should generate a new variable and replace the values to 1= if the country is landlocked, but I don't know how to specify this in Stata, that those countries should take the value of 1.
gen landlocked = 0
replace landlocked=1 if ?????
For instance, I am using iso3 code names
AFG ARM AUT AZE BFA BDI BOL BTN BWA CAF CHE CZE ETH HUN KGZ KAZ LAO LSO LUX MKD MLI MNG MWI NER NPL PRY RWA SVK SWZ TCD TJK TKM UGA UZB ZMB ZWE
Any ideas of what should I do? Thanks!
Comment