datacarpentry / stata-economics

Economics Lesson with Stata
https://datacarpentry.org/stata-economics/
Other
27 stars 20 forks source link

E3: Repeat or save corrected WDIcountry.dta from E2 #92

Open andrasvereckei opened 4 years ago

andrasvereckei commented 4 years ago

First line: There are many variables in our dataset loaded from data/raw/worldbank/WDICountry.csv. For this lesson we need the modified WDI.country.dta from the end of episode 2.

import delimited "/data/raw/worldbank/WDICountry.csv", varnames(1) bindquote(strict) encoding("utf-8") clear generate censusyear = real(substr(latestpopulationcensus, 1, 4))

Maybe change the description in the first line and repeat the import and generate command.