Please note that the content of this book primarily consists of articles
available from Wikipedia or other free sources online. In regression
analysis, a dummy variable (also known as indicator variable or just
dummy) is one that takes the values 0 or 1 to indicate the absence or
presence of some categorical effect that may be expected to shift the
outcome. For example, in econometric time series analysis, dummy
variables may be used to indicate the occurrence of wars, or major
strikes. It could thus be thought of as a truth value represented as a
numerical value 0 or 1 (as is sometimes done in computer programming).
Use of dummy variables usually increases model fit (coefficient of
determination), but at a cost of fewer degrees of freedom and loss of
generality of the model. Too many dummy variables result in a model that
does not provide any general conclusions.