project_rain: Project Rainfall

View source: R/project_rain.R

project_rainR Documentation

Project Rainfall

Description

This function projects rainfall in each of the Haitian departements. The rainfall is used as a covariate in Model 3.

Usage

project_rain(end_date = as.Date("2029-12-20"), include_data = FALSE)

Arguments

end_date

Date object representing when the projection of rainfall should stop.

include_data

Boolean indicating the observed data should be included in the result.

Details

The rainfall projection is made by assuming that the rainfall on certain dates in the future will be similar to the rainfall on the same dates in previous years. Therefore the projection is made by the following steps:

  1. Starting from 1 day after the available data (either actual data or projected rainfall from previous steps), get the 14-day window of dates in which rainfall will be projected.

  2. With this 14-day window, randomly select a year in the past in which actual rainfall data is available.

  3. Project the rainfall on the selected 14-day window by using the observed rainfall measurements over the same dates in the randomly selected year.

  4. Repeat the process until a projection for all desired dates in the future is obtained.

Note that this forecasting procedure is stochastic and that a different rainfall projection will be obtained each time the function is called. While it is unlikely that this function will provide precise estimates of future rainfall, it will likely capture seasonal trends in rainfall that may affect the spread of Cholera in Haiti.


zjiang2/haitipkg documentation built on March 1, 2024, 11:34 p.m.