Model Fitting: Linear Regression

Example

In this example you fit a linear regression model to predict the 1987 salaries of Major League Baseball players as a function of several explanatory variables in the Baseball data set. The response variable is salary. The example examines three explanatory variables: two measures of hitting performance and one measure of longevity. The explanatory variables are described in the following list:

The example has four major steps:

  1. Apply a logarithmic transformation to the response variable.
  2. Set name to be the variables whose values are used to label observations.
  3. Run the Linear Regression analysis.
  4. Discuss the various plots that the analysis can produce.


Open the Baseball data set.


Transforming the Response

Selecting a Variable Used to Label Observations

Specifying the Mode

Interpreting Linear Regression Plots

Previous Page | Next Page | Top of Page