PWT: Matlab Code¶
outDir: figures and tables
dataDir: original data files
progDir: program files
The code is entirely general purpose (not specific to the course).
go_pwt8startup; add dir to path
run_all_pwt8runs everything in sequence
import_pwt8imports stata file into matlab
var_load_yc_pwt8loads one variable by [Country,year]
country_list_pwt8makes list of countries and years
- Download Stata file.
- Make Stata file into a matlab
import_pwt8: break the Stata file into individual variables and save them as matlab matrices, indexed by [year, country]
var_load_yc_pwt8: loads one variable for a given set of years and countries
Write code that imports the stata file (
Plot the density of real output per worker in 2000 (
Plot the price of consumption against real gdp per worker for the year 2000.
What do you find?