Economic impacts: Difference between revisions
Jump to navigation
Jump to search
(cost calculations moved from Helsinki energy decision 2015) |
|||
(6 intermediate revisions by the same user not shown) | |||
Line 16: | Line 16: | ||
This code tells how to calculate prices of emissions, external costs of health and CO2 emissions, net costs of operating power plants (two different versions), and finally total cost. | This code tells how to calculate prices of emissions, external costs of health and CO2 emissions, net costs of operating power plants (two different versions), and finally total cost. | ||
<rcode name="totalCost" label="Initiate totalCost (for developers only)" store=1> | <rcode name="totalCost" label="Initiate totalCost (for developers only)" store=1 embed=1> | ||
# This code is Op_en3283/totalCost [[Economic impacts]] | # This code is Op_en3283/totalCost [[Economic impacts]] | ||
library(OpasnetUtils) | library(OpasnetUtils) | ||
emissionprice <- Ovariable("emissionprice", | emissionprice <- Ovariable("emissionprice", | ||
dependencies = data.frame(Name = c("co2price")), | dependencies = data.frame(Name = c("co2price"),Ident = "Op_en7379/externalities"), | ||
formula = function(...) { | formula = function(...) { | ||
temp <- c("CO2direct", "CO2eq", "CO2trade", "PM2.5") | temp <- c("CO2direct", "CO2eq", "CO2trade", "PM2.5") | ||
Line 52: | Line 52: | ||
"DALYs", | "DALYs", | ||
"DALYprice" | "DALYprice" | ||
) | ), | ||
Ident = c(NA,"Op_en7379/externalities",NA,"Op_en7379/externalities") | |||
), | ), | ||
formula = function(...) { | formula = function(...) { | ||
Line 83: | Line 84: | ||
climate <- oapply(climate, cols = "Pollutant", FUN = sum) # Remove joint index Pollutant | climate <- oapply(climate, cols = "Pollutant", FUN = sum) # Remove joint index Pollutant | ||
out <- combine(health, climate) | out <- OpasnetUtils::combine(health, climate) | ||
# out$Cost <- factor(out$Cost, levels = c( | # out$Cost <- factor(out$Cost, levels = c( | ||
# "Management cost", | # "Management cost", | ||
Line 162: | Line 163: | ||
fuelcost <- oapply(unkeep(fuelcost, sources = TRUE), cols = c("Burner"), FUN = sum) | fuelcost <- oapply(unkeep(fuelcost, sources = TRUE), cols = c("Burner"), FUN = sum) | ||
cost <- combine( | cost <- OpasnetUtils::combine( | ||
investment, # Investment cost | investment, # Investment cost | ||
maintenance, # Maintenance cost | maintenance, # Maintenance cost | ||
Line 238: | Line 239: | ||
fuelcost$Fuel <- NULL | fuelcost$Fuel <- NULL | ||
fuelcost$Parameter <- "Fuel cost" | fuelcost$Parameter <- "Fuel cost" | ||
fuelcost$Parameter[result(fuelcost) < 0] <- " | fuelcost$Parameter[result(fuelcost) < 0] <- "Sales proceeds" | ||
fuelcost <- oapply(unkeep(fuelcost, sources = TRUE), cols = c("Burner"), FUN = sum) | fuelcost <- oapply(unkeep(fuelcost, sources = TRUE), cols = c("Burner"), FUN = sum) | ||
cost <- combine( | cost <- OpasnetUtils::combine( | ||
investment, # Investment cost | investment, # Investment cost | ||
maintenance, # Maintenance cost | maintenance, # Maintenance cost | ||
Line 263: | Line 264: | ||
), | ), | ||
formula = function(...) { | formula = function(...) { | ||
out <- combine(plantCost, externalCost) | out <- OpasnetUtils::combine(plantCost, externalCost) | ||
# out$Cost <- factor(out$Cost, levels = c( | # out$Cost <- factor(out$Cost, levels = c( | ||
# "Management cost", | # "Management cost", | ||
Line 271: | Line 272: | ||
# "Health", | # "Health", | ||
# "Climate", | # "Climate", | ||
# " | # "Sales proceeds", | ||
# "Profit" | # "Profit" | ||
# )) | # )) | ||
Line 290: | Line 291: | ||
=== Effective annual cost === | === Effective annual cost === | ||
<rcode name="EAC" label="Initiate EAC (for developers only)" store=1> | <rcode name="EAC" label="Initiate EAC (for developers only)" embed=1 store=1> | ||
# This code is Op_en3283/EAC [[Economic impacts]] | # This code is Op_en3283/EAC [[Economic impacts]] | ||
library(OpasnetUtils) | library(OpasnetUtils) | ||
Line 308: | Line 309: | ||
) | ) | ||
out <- oapply( | out <- oapply(totalCost * out, cols = "Time", FUN = sum) | ||
# Change NPV to EAC | # Change NPV to EAC | ||
out <- out / ((1 - 1/(1+discount)^(max(times) - min(times)))/discount) | out <- out / ((1 - 1/(1+discount)^(max(times) - min(times)))/discount) | ||
Line 323: | Line 324: | ||
time = "Time" # column name for time index | time = "Time" # column name for time index | ||
) { | ) { | ||
allcost <- combine(...) | allcost <- OpasnetUtils::combine(...) | ||
temp <- unique(allcost[ , allcost@marginal & colnames(allcost@output) != time]@output) | temp <- unique(allcost[ , allcost@marginal & colnames(allcost@output) != time]@output) | ||
out <- data.frame() | out <- data.frame() | ||
Line 348: | Line 349: | ||
cat("Ovariable EAC stored.\n") | cat("Ovariable EAC stored.\n") | ||
</rcode> | </rcode> | ||
=== Dependencies === | |||
* [[External cost]] | |||
* [[:en:Net present value]] | |||
* [[:en:Equivalent annual cost]] | |||
== See also == | == See also == |
Latest revision as of 04:52, 13 April 2019
Moderator:Heta (see all) |
|
Upload data
|
Question
How to assess typical economic impacts in an assessment?
Answer
Rationale
External and total costs
This code tells how to calculate prices of emissions, external costs of health and CO2 emissions, net costs of operating power plants (two different versions), and finally total cost.
Net present value
Net present value is the total value of a product, when all its costs and benefits are discounted and then summed to the present time (as if all costs and benefits would occur today). The effective annual cost is similar, but it is scaled differently: it is as if all costs and benefits would occur every year at constant rate.
Effective annual cost
Dependencies
See also
- Competitiveness, trade and investment flows
- Competition in the internal market
- Operating costs and conduct of business
- Administrative costs on businesses
- Property rights
- Innovation and research
- Consumers and households
- Specific regions or sectors
- Third countries and international relations
- Public authorities
- The macroeconomic environment