Learn R Programming

EDA (version 1.3)

LMDI: Log Mean Devisia Index method for energy decomposition analysis

Description

Log Mean Devisia Index method for energy decomposition analysis

Usage

LMDI(C0, CT, X0, XT)
# S3 method for LMDI
print(x, ...)

Arguments

C0

A numeric vector or a data.frame of carbon emission or energy consumption in the initial year.

CT

A numeric vector or a data.frame of carbon emission or energy consumption in the year T.

X0

A numeric vector or a data.frame of an impact factor in the initial year.

XT

A numeric vector or a data.frame of an impact factor in the year T.

x

A list of LMDI result.

...

Ignore

References

Ang, B. W. (2005). The LMDI approach to decomposition analysis: a practical guide. Energy policy, 33(7), 867-871.

See Also

EDA

Examples

Run this code
# NOT RUN {
library(EDA)
data(carbon)
data(factordata)
## set parameters
cdata <- carbon[,-c(1,2)]
C0 <- cdata[1,]
CT <- cdata[2,]
X0 <- factordata[[2]][1,]
XT <- factordata[[2]][2,]
## run LMDI model
ed1 <- LMDI(C0, CT, X0, XT)
ed1

# }

Run the code above in your browser using DataLab