Quick Guide - Log linear models

Ralf Martin
11-14-2020

What is the difference between the linear, log and log-log models? They describe different possible relationships between the dependent and explanatory variable. This affects how we can interpret estimated parameters. There are three cases

We can draw all three in the same y-x diagram by re-writing the equations (and recalling that the exponential function \(\exp(\cdot)\) is the inverse of the natural logarithm function \(\ln(\cdot)\)

Plotting this for a=1 and b=0.1 will look as follows:

i.e. log vs log-log are two different types of a non-linear relationship between x and y; e.g. in the log case a given change in x will have an increasingly bigger impact on y. The opposite is true in the log-log case. The interpretation of the parameters also changes in the three cases. To understand the differences consider the derivative (or gradient) in each case:

For this we use the following rules for taking derivatives:

To understand how to interpret the b coefficient, we can re-write the derivative formulas so that we have b on one side of the equation. We can also use the fact that the derivative is approximately the small change in y you get in response to a small change in x; i.e. \(\frac{\partial y}{\partial x} \approx \frac{dy}{dx}\)

Hence, we get the following interpretations (recalling that \(dz/z\) is the growth rate of a variable z):

Examples:

Suppose that y is the wage in $ and \(x\) is the years of experience of an individual

Suppose that y is the number of crimes and is the number of foreigners in an area

Citation

For attribution, please cite this work as

Martin (2020, Nov. 14). Datastories Hub: Quick Guide - Log linear models. Retrieved from https://mondpanther.github.io/datastorieshub/posts/quickguides/quickguide_loglinear/

BibTeX citation

@misc{martin2020quick,
  author = {Martin, Ralf},
  title = {Datastories Hub: Quick Guide - Log linear models},
  url = {https://mondpanther.github.io/datastorieshub/posts/quickguides/quickguide_loglinear/},
  year = {2020}
}