The R
package LMDIR
provides an implementation of log-mean divisia
index decomposition analysis in R (LMDIR) based on Ang
(2005).
You can install LMDIR
from github with:
# install devtools if not already installed
# install.packages("devtools")
devtools::install_github("MatthewHeun/LMDIR")
# To build vignettes locally, use
devtools::install_github("MatthewHeun/LMDIR", build_vignettes = TRUE)
The functions in this package were first used in the paper Heun et al. (2019).
Find more information, including vignettes and function documentation at https://MatthewHeun.github.io/LMDIR/.
Ang, B. W. 2005. “The LMDI Approach to Decomposition Analysis: A Practical Guide.” Energy Policy 33: 867–71. https://doi.org/10.1016/j.enpol.2003.10.010.
Heun, Matthew Kuperus, and Paul E. Brockway. 2019. “Meeting 2030 Primary Energy and Economic Growth Goals: Mission Impossible?” Applied Energy 251 (February): 1–24. https://doi.org/10.1016/j.apenergy.2019.01.255.