PORTAL USER GUIDE
Linear Model Response Plot
The Linear Model Response Plot tool 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 tool, we will run it on a dataset within Tasmania to visualise the connection between fruit intake and obesity in children. Prepare the context by:
- Select South Australia as your area.
- Select PHIDU – Prevalence of Selected Health Risk Factors – Children and Youth (LGA) 2014-2015 as your dataset with the following attributes:
- LGA Code 2016
- LGA Name 2016
- Estimated Number Of People Aged 4-17 Years With Adequate Fruit Intake (Modelled Estimates) 2014-15 ASR per 100
- Estimated Number Of Children Aged 2-17 Years Who Were Obese (Modelled Estimates)* 2014-15 ASR per 100
Once you have added the dataset and the selected attributes, you are ready to use the Linear Model Response Plot tool – follow on to learn about the input options.
Once you have set up your data, open the Linear Model Response Plot tool (Tools → Charts → Linear Model Response Plot). The input fields are as follows:
- Dataset Input: The dataset containing the variables that you would like to run through the tool. Select PHIDU – Prevalence of Selected Health Risk Factors – Children and Youth (LGA) 2014-2015.
- 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 found in the metadata window of the dataset.
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”. For this example Type est_chld_2_17_yrs_obese_2014_15_asr_100 ~ est_ppl_4_17_yrs_adq_frt_intk_2014_15_asr_100.
- Compute Intercept: Checked means we compute the intercept with the y axis. Tick this box.
- Chart Title: This is where we enter the name that we want to give the resultant plot. Type Linear Model Response Plot: Rate of Fruit Intake vs Childhood Obesity.
- Show Gridlines: Check this box if you want gridlines for your graph. Tick this box.
- Greyscale: Check this box if you want your graph to be produced in greyscale. Untick this box.
A summary of the inputs to explore our case can be viewed in the image below, once complete click Run Tool.
Once your tool has run, click the Display Output 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.