Learn R Programming

IETD (version 1.0.0)

AutoA: Autocorrelation analysis

Description

This function provides the required figure (an autocorrelogram) to define the inter-event time definition (IETD) based on the autocorrelation analysis.

Usage

AutoA(Time_series,MaxLag,CL,xlabel,ylabel)

Arguments

Time_series

A dataframe. The first column contains the time and day of a rainfall pulse and the second one the depth of rainfall in each time step. The date must be as POSIXct class.

MaxLag

The maximum lag time to be analyzed (in hours). Default value 24.

CL

The confidence level of the autocorrelation function (ACF)(in percentage). Default value 95%.

xlabel

Label of the x-axis of the autocorrelogram.

ylabel

Label of the y-axis of the autocorrelogram.

Value

A list with a figure of lag time (in hours) vs ACF, i.e., an autocorrelogram, and a dataframe with its values.

Details

IETD is here defined as the lag time where the autocorrelation coefficient of rain pulses, i.e., the autocorrelation function(ACF), converges to zero Joo2014,Adams2000IETD. The analyst uses an autocorrelogram to define that value within a specific level of tolerance. This function is based on the function acf of the stats package.

References

Examples

Run this code
# NOT RUN {
AutoA(Time_series=hourly_time_series)
# }

Run the code above in your browser using DataLab