Skip to content

An R version of the TPM impacts model supporting the 2020 decision on TPM guidelines

License

Notifications You must be signed in to change notification settings

ElectricityAuthority/tpm-impacts-model

Repository files navigation

Introduction

This repository includes the code for the Authority's TPM impacts model. An earlier Excel version of the model called '2019 Proposal impacts modelling', was originally originally released as part of the 2019 Issues Paper. The original Excel version of the model is available via EMI, along with the data files and vSPD version used to generate the inputs to the model. This version of the model includes further changes made from the February - March 2020 supplementary consultation. The changes from the original model are discussed in the additional documentation file.

Setup

This project uses R 3.6.1. renv manages the R dependencies of this project. To install the libraries needed to run this project, run the following from the project:

source('renv/activate.R')
renv::restore()

The data files used as inputs to the model are included in this repository, hence there is no setup required. These are also available from EMI.

Running the impacts model

the rprogs/main.R file is used to rerun the impacts model. Sourcing this file will regenerate the results files, found in the results directory. For more information on the options available in the main file and the calculations performed, see the additional documentation file

About

An R version of the TPM impacts model supporting the 2020 decision on TPM guidelines

Resources

License

Stars

Watchers

Forks

Packages

No packages published