Analysis of annual global temperature data

Step 1) Load the data The data are the yearly average global temperature from 1880-2006. The data are adjusted by subtracting the mean from 1951-1980. The objective of this analysis is to test whether temperature has increased in the past 126 years. The data are downloaded from NASA. Data and SAS code can be found here.

Step 2) Compute the least squares line
  • Open the "analyst" window by clicking solutions/analysis/analyst and retrieve the dataset by clicking file/open by SAS name/.
  • Open the regression menu by clicking statistics/regression/simple. Enter TEMP as the dependent variable and YEAR as the explanatory variable. Step 3) Plot the least squares regression line
  • Open the regression menu by clicking statistics/regression/simple. Enter TEMP as the dependent variable and YEAR as the explanatory variable.
  • Click "plots" and "observed versus predicted" and "observed versus independent".