Click here to see the SAS code.
Click here to see the example.
---------------------------------------------------------------
Found data here...
http://www.eia.gov/totalenergy/data/monthly/index.cfm#prices
Saved csv files:
9.1 Crude Oil Price Summary
MER_T09_01.csv
9.4 Motor Gasoline Retail Prices, U.S. City Average
MER_T09_04.csv
Used Proc import to import into SAS.
Used Proc Gplot, with interpol=rl (regression line) to plot the data.
(Note that the $ values are in "current dollars", not constant/adjusted dollars.)
Back to Samples Index