/FrEDI

FrEDI estimates annual physical and economic impacts from climate change to the U.S., through the 21st century

Primary LanguageHTMLOtherNOASSERTION

FrEDI

The Framework for Evaluating Damages and Impacts (FrEDI)

FrEDI estimates the annual physical and economic impacts of future climate change to the US, through the 21st century.


Starting in February 2024, the 2024 FrEDI Technical Documentation and v4.0 of the FrEDI R package will be subject to an independent, external peer review and public comment period. All comments received will be carefully reviewed, considered, and responded to. The final 2024 Technical Documentation and v4.0 R package are expected in late spring 2024.


Installation

To install FrEDI for the first time:

library("devtools")

withr::with_libpaths(  

   new = .libPaths()[1],  
   
   devtools::install_github(  
   
       repo = "USEPA/FrEDI",  
         subdir = "FrEDI",  
        type = "source",  
         force = TRUE  
         #ref = "branch" # this will install a particular branch of interest
       ))

library("FrEDI")

Using FrEDI

After loading FrEDI, point FrEDI to a particular temperature file of interest formatted year, temp_c: tempInputFile <- file.path("your_file.csv").
You also can add in files for gdp and population.

Here we specify that the temperature inputs are global. This will allow FrEDI to convert those temperatures to CONUS level:

inputs <- import_inputs(tempfile = tempInputFile, temptype = "global")

A simple command to run FrEDI using the inputs specified above : df <- run_fredi(inputsList= inputs, aggLevels="all")

There are different levels to aggregate the data. By selecting "none", FrEDI will print out all of the information and the user can then aggregate after.

Contributing to FrEDI

The FrEDI team welcomes and values community contributions, but please see our Contribution Guide and note by contributing to this project, you agree to abide to our Contributor Code of Conduct


For more information, refer to the documentation at https://www.epa.gov/cira/about-fredi and https://usepa.github.io/FrEDI.