Regression Examples


Simple Regression Simulation (EXCEL)

Math Score LSD Concentration - Matrix Form

Simple Linear Regression Based on Sums of Squares and Cross-Products

Electric Train Supply and Demand       Data       Description

EXCEL   Spreadsheet      Combined EXCEL, R, SAS   Programs/Results

R    Program            SAS    Program

Multiple Regression in Matrix Form - Assessed Winning Probabilities in Texas Hold 'Em     

Word         Excel

Multiple Linear Regression - Estimating Demand Curves Over Time

EXCEL  Spreadsheet


Matrix Form of Multiple Regression - British Calorie Burning Experiment

Part 1 - OLS Estimation/Variance Estimation

British Calorie Burning Experiment    Data     Description

R         Program        Output

SAS    Program        Output

EXCEL (All Parts)   Spreadsheet

Part 2 - Analysis of Variance/F-Test

R         Program        Output

SAS    Program        Output

Part 3 - t-Tests/Sequential and Partial Sums of Squares

R         Program        Output

SAS    Program        Output

Part 4 - Output from Regression Procedures

R         Program         Text Output       Graphics Output

SAS     Program         Text Output       Graphics Output

Part 5 - Model Validation - PRESS and MSEP

R         Program        Output

SAS    Program        Output


Gravity and Latitude  EXCEL

General Linear Tests and Contrained Estimation - Cobb-Douglas Production Function

Model Building

PGA 2004 Performance Statistics/Winnings

EXCEL Spreadsheet  (Uses Y'=log_10(Y))          
EXCEL Spreadsheet  (Uses Y'=log_10(Y)) 

Data (Calibration Sample)

R Program         R Output

SAS Program       SAS Output

Clinton/Bush 1992 -- Variable Selection  (SAS Program)

Clinton/Bush 1992 -- Variable Selection (Output)



Polynomial Regression

NASCAR Example -- Worksheet

NASCAR Example -- Response Surface Program

NASCAR Example -- Response Surface Output


Trigonometric Regression


Tampa Hotel Case Study - PPT

Tampa Hotel Data

Tampa SAS Program    Tampa SAS Output      Graph1       Graph2      Graph3    Graph4

Tampa R Program          Tampa R Output         All Graphs

Miami Hotel Data

All Cities Hotel Data - EXCEL

Yakutsk Average Monthly Temperature - Trigonometric Regression


Response Surface Models

Orange Emulsion Example - EXCEL

Orange Emulsion    Data    Description

Orange Emulsion       SAS Program   SAS Graphics Program    SAS Output          SAS Graphics Output

Orange Emulsion      R Program          R Output             R Graphics Output

Models with Class Variables

Ballistics Analysis (EXCEL)

Ballistics      Data      Description

Ballistics      SAS Program      SAS Text Output         SAS Graphics Output

Ballistics      R Program          R Text Output             R Graphics Output

Trombone Data - Analysis of Covariance  (EXCEL)

Clouds Example (ANCOVA)

Egyptian Cotton Example (EXCEL)

Problem Areas in Least Squares

Problem Areas in Least Squares (PPT)

R Program to Simulate Problem Areas in Least Squares





Residual Analysis

Residual Analysis of Regression of Argentine Wheat Yields Rainfall and Temperature  (WORD)

Residual Analysis of Regression of Argentine Wheat Yields Rainfall and Temperature  (EXCEL)

Argentine Wheat Yields     Data           Description

Argentine Wheat Yields   SAS Program      SAS Text Output      SAS Graphics Output

Argentine Wheat Yields   R Program           R Text Output          R  Graphics Output

Residuals and Influence Measures  (WORD)

Muscle Regression Case Study (PPT)

Muscle Regression Matrix Example (Y=Heat Production (Calories), X1=Work Effort (Calories), X2=Body Mass (Kilograms))  (EXCEL Spreadsheet)

SAS Program       SAS Text Output         SAS Graphics Output

R Program            R Text Output             R Graphics Output

NFL 2007 Spread and Actual Scores - Regression/Residual Analysis and Tests  (PPT)

Wine Consumption/Population Circa 1988 by State (EXCEL)

Wine Consumption -- Influence Statistics (SAS Program/Output)

Wine Consumption (Text File)

LPGA Residual Analysis (EXCEL)

LPGA Residual Analysis   SAS Program       SAS Text Output    SAS Graphics Output

LPGA Residual Analysis   R Program            R Text Output        R Graphics Output

Texas Weather (n=369) (EXCEL)

Transformations 

1-Bend Transformation - Gunpowder Experiments (EXCEL)

 2-Bend Transformations (EXCEL)

Spanish Silver in New World 1720-1800 - Box-Cox Transformation SAS Program (Proc Transreg)

Spanish Silver in New World 1720-1800 - Box-Cox Transformation SAS Program Output (Proc Transreg)

Spanish Silver in New World 1720-1800 - Box-Cox Transformation SAS Program Graphics Output (Proc Transreg)

Spanish Silver in New World 1720-1800 - Box-Cox Transformation R Program (boxcox function)

Spanish Silver in New World 1720-1800 - Box-Cox Transformation R Program Graphics Output (boxcox function)

Spanish Silver in New World 1720-1800 - Box-Cox Transformation SAS Program (Matrix Form)

Spanish Silver in New World 1720-1800 - Box-Cox Transformation SAS Program Output (Matrix Form)

Spanish Silver in New World 1720-1800 - Box-Cox Transformation SAS Program Graphics Output (Matrix Form)

Spanish Silver in New World 1720-1800 - Box-Cox Transformation R Program (Matrix Form)

Spanish Silver in New World 1720-1800 - Box-Cox Transformation R Program Output (Matrix Form)

Spanish Silver in New World 1720-1800 - Box-Cox Transformation R Program Graphics Output (Matrix Form)


Weighted Least Squares Case study -- Cholesterol Reduction (PPT)

 Weighted Least Squares -- Cholesterol Reduction SAS Program

 
Weighted Least Squares -- Cholesterol Reduction SAS Output

 Weighted Least Squares -- Cholesterol Reduction SAS Graph Output

 Weighted Least Squares -- Cholesterol Reduction R Program

 
Weighted Least Squares -- Cholesterol Reduction R Output

 Weighted Least Squares -- Cholesterol Reduction R Graph Output


Estimated Weighted Least Squares - RKO Film Revenues and Costs


Generalized Least Squares Case Study -- US Wine Sales vs Population 1934-2003 (PPT)

US Wine Sales and Population      Data    Description    SAS Program

Generalized Least Squares - UK Spirits SAS Program

Generalized Least Squares - UK Spirits SAS Program (Matrix Form)

Generalized Least Squares - UK Spirits SAS Program Output

Generalized Least Squares - UK Spirits SAS Program (Matrix Form) Output

Generalized Least Squares - UK Spirits SAS Program (Matrix Form) Graphics Output 1

Generalized Least Squares - UK Spirits SAS Program (Matrix Form) Graphics Output 2

Generalized Least Squares - UK Spirits SAS Program (Matrix Form) Graphics Output 3

Generalized Least Squares - UK Spirits SAS Program (Matrix Form) Graphics Output 4

Generalized Least Squares - UK Spirits R Program (Matrix Form)

Generalized Least Squares - UK Spirits R Program (Matrix Form) Output

Generalized Least Squares - UK Spirits R Program (Matrix Form) Graphics Output


Nonlinear Regression

Orlistat Case Study - PPT

Orlistat     Data     Description      

SAS Program        SAS Text Output         SAS Graphics Output

R Program            R Text Output              R Graphics Output

Orlistat Nonlinear Regression Program

Orlistat Nonlinear Regression Output

Orlistat Nonlinear Regression Plot



Generalized Linear Models

Logistic Regression - Pre-Challenger O-Ring Failures - PPT

Pre-Challenger    Data     Description

Pre-Challenger SAS Program                  SAS Output

Pre-Challenger R Program                       R Output


Poisson Regression - NASCAR Race Crashes 1975-1979 - PPT

NASCAR Race Crashes    Data        Description

NASCAR Race Crashes     SAS Program           SAS Output

NASCAR Race Crashes     R Program                R Output


Random Coefficient Regression/General Mixed Linear Models

Airline Revenues for 10 Markets 1996-2000 Case Study - PPT

Airline Revenues for 10 Markets         Data     Description

R Program (lme procedure in nlme library)           R Output

SAS Program (proc mixed)                                      SAS Output


LCD Television Price Regression 1

LCD Television Price Regression 2

Texas Weather (369 Sites)

Texas January High Temps (369 Sites) - EXCEL

NFL 2007 - Point Spread Analysis  (EXCEL)

Confidence Ellipsoid for NFL 2007 Data (EXCEL)

NFL 2007 - Lack-of-Fit Test and Plot  (EXCEL)

PGA 2004 Regression/Model Validation (EXCEL)

NASCAR Spreadsheet for Response Surface Model  (EXCEL)



Retail Sales Multiple Regression Program

Retail Sales Multiple Regression Output

Retail Data

Income data

Population Data

Federal Expenditures Data


Cost Function Data (EXCEL)

Cost Function Data (Text)

Advertising Expenditure Example -- Polynomial Regression Program

2002 MLB Salary/Records (Text)














Forbes 500 SAS Program

Gainesville Airfare Data (EXCEL)


Coffee Prices (Text File)

State Tobacco Data (Text File)


U.S. Domestic Average Airfare - Q4-2002  (SAS Program)

U.S. Domestic Average Airfare - Q4-2002 (Text File)

U.S. Domestic Average Airfare - Q4-2002 (SAS Matrix Program)

U.S. Domestic Airfare - Q4-2002 Pseudo Lack of Fit (SAS Program)

U.S. Domestic Airfare - Q4-2002  Model Validation with Double Split Samples (SAS Program)

U.S. Domestic Airfare - Q4-2002 Homogeneity of Regression Functions (SAS Program)

U.S. Domestic Airfare - Q4-2002 Homogeneity of Regression Functions (SAS Output)

U.S. Domestic Airfare - Q4-2002 -- Region Labels (Text File)




Texas Weather Example(EXCEL)





Water Evaporation (Text File)

 

Trigonometric Regression - Hotel Data

Trigonometric Regression - Miami SAS Program

Trigonometric Regression - Norfolk SAS Program

Trigonometric Regression - Tampa SAS Program







 Gunpowder Experiments (SAS Program)

 Gunpowder Experiment - Nonlinear Regression (SAS Program)

 Weights of Diluted Spirits (SAS Program)

Weights of Diluted Spirits (R Program)

Weights of Diluted Spirits (EXCEL)