Linear Model Response Plot


The Linear Model Response plot is a scatter plot of the response variable (your dependent variable) against the independent variable, that provides a good indication of the nature of the relationship of a linear regression model. This graph plots independent values against fitted values.


To illustrate the linear model response plot, we will run it on a dataset within South Australia

  • Select South Australia as your area
  • Select SA2 Chronic Disease (synthetic prediction) 2007 as your dataset, and select the following attributes:
    •  Statistical Area 2 code
    •  Statistical Area 2 name
    •  Type 2 diabetes (synthetic prediction) – Rate per 100
    •  Circulatory system diseases (synthetic prediction) – Rate per 100

Open the Linear Model Response Tool (Analyse → Tools → Charts → Linear Model Response Tool) and enter the following parameters (shown below):

[Click to Enlarge]

  • Dataset Input: select the dataset you would like to use. Here we use SA2 Chronic Disease (synthetic prediction) 2007
  •  LM Formula: This will need to be typed in the manner that is normally incorporated in the R language. This will require typing in the names rather than the titles of the variables. These can be copied and pasted from the metadata panel if you open up the dataset to the right. When we ‘regress’ a dependent variable on an independent variable in R, this is written as dependent variable ~ independent variable with the tilde symbol (~) representing the statistical function of “regressed on”. So, for this example you will need to type:
    •  diabetes_me_2_rate_3_11_7_13 ~ circ_me_2_rate_3_11_7_13
  •  LM Compute Intercept: checked means we compute the intercept with the y axis
  •  Chart Title:  here we select a title for our graph, such as Linear Model Response Plot: Rate of Diabetes vs Circulatory Syndrome
  •  Grid: Whether or not we have gridlines on our graph. Leave it checked
  •  Greyscale: leave it unchecked if you want a colour graph

Once you have entered the parameters, click Add and Run


Once your tool has run, click the Display button on the pop-up window that appears. You should get a graph which looks like the graph below.

This is a linear model response plot, with the distance of each observed point marked vertically from the linear model line.

[Click to Enlarge]