ST 590G -- Computation for Data Analysis First Assignment -- due Thursday, 30 August 2012 Two .csv files in the 'cdiac' directory have estimates of CO2 emissions. One is 'emis_mon__usaoxid.csv' which includes disaggregated values for Coal, Oil, and Gas, as well as the Total. Another is 'mon_usatotaldat.csv' which only has what appears to be the 'Total' in the first file, but in a different arrangement -- twelve months across with an annual total. a) Read in the two files. In both cases, create SAS datasets with just the variables YEAR, MONTH, and TOTAL. b) In reading the second, check to see that the annual matches the sum of the twelve months and write code to throw a flag in the log window if they don't match(close enough). c) Merge these two datasets to check to see if the totals given in the two files match (close enough). d) Plot total vs time/date For more information about these data, see http://cdiac.ornl.gov/trends/emis_mon/emis_mon_co2.html The file 'UMTMVS.txt' was obtained from FRED, and holds monthly values of a manufacturing index in tab-delimited format. d) Read in these data and create a dataset with variables MFG and a time/date variable. e) Plot the manufacuring index versus time/date. f) Put this dataset together with the 'total' dataset above via merge/by. g) Regress the total on the manufacturing index. Report the results and comment on the fit. FOR ALL EXERCISES: Hand in (1) Your program * With at least as many comments as you have toes! * (2) Your output (3) The answers to any questions asked.