Published online by Cambridge University Press: 05 June 2012
Linear regression is sometimes more than we really need. A simple rule about whether or not to take a different action is often adequate. When you look at the fuel gauge on your car, at what point do you begin to look for a gas station? An indicator variable takes a continuous measurement and cuts it up into two discrete categories.
We can also transform variables in a nonlinear fashion if this serves to reduce leverage or make the data look more like a straight line. Interactions are variables we use in a regression model to see if the explanatory value of two variables is greater than the sum of their parts. A pizza with two toppings may be much better than two separate halves with the individual toppings. Or perhaps it may be worse.
Indicator Variables
Water boils at a lower temperature at high altitude, and experienced cooks know that recipes need to be adjusted accordingly. Consider the recipe given in Table 6.1. Most important, notice the footnote about making an adjustment for high altitude. This is expressed in terms of a change that suddenly needs to be made above a critical height above sea level. Ideally, the person preparing this dish should first obtain an accurate measure of the altitude and then use a calculator to determine the precise amount of adjustment that needs to be made. Nobody would consider doing this, of course. Instead we are instructed to use this easily remembered rule that takes effect above a critical level.
To save this book to your Kindle, first ensure no-reply@cambridge.org is added to your Approved Personal Document E-mail List under your Personal Document Settings on the Manage Your Content and Devices page of your Amazon account. Then enter the ‘name’ part of your Kindle email address below. Find out more about saving to your Kindle.
Note you can select to save to either the @free.kindle.com or @kindle.com variations. ‘@free.kindle.com’ emails are free but can only be saved to your device when it is connected to wi-fi. ‘@kindle.com’ emails can be delivered even when you are not connected to wi-fi, but note that service fees apply.
Find out more about the Kindle Personal Document Service.
To save content items to your account, please confirm that you agree to abide by our usage policies. If this is the first time you use this feature, you will be asked to authorise Cambridge Core to connect with your account. Find out more about saving content to Dropbox.
To save content items to your account, please confirm that you agree to abide by our usage policies. If this is the first time you use this feature, you will be asked to authorise Cambridge Core to connect with your account. Find out more about saving content to Google Drive.