Learn R Programming

ReturnCurves (version 1.0.1)

ReturnCurves-package: Estimation of Return Curves

Description

Implements the estimation of the pp-probability return curve MurphyBarltropetal2023ReturnCurves, as well as a pointwise and smooth estimation of the angular dependence function WadsworthTawn2013ReturnCurves.

Arguments

Available functions

adf_est: Estimation of the Angular Dependence Function (ADF)

adf_gof: Goodness of fit of the Angular Dependence Function estimates

airdata: Air pollution data

marggpd: Assessing the Marginal Tail Fits

margtransf: Marginal Transformation

rc_est: Return Curve estimation

rc_gof: Goodness of fit of the Return Curve estimates

rc_unc: Uncertainty of the Return Curve estimates

runShiny: Complementary Shiny app for the ReturnCurves package

Author

Maintainer: Lídia André l.andre@lancaster.ac.uk

Authors:

References

Examples

Run this code
library(ReturnCurves)

data(airdata)

n <- dim(airdata)[1]

# Marginal Transformation
margdata <- margtransf(airdata)

head(margdata@dataexp)

# Return Curves estimation

prob <- 1/n

retcurve <- rc_est(margdata = margdata, p = prob, method = "hill")

head(retcurve@rc)

# ADF estimation
lambda <- adf_est(margdata = margdata, method = "hill")

head(lambda@adf)

Run the code above in your browser using DataLab