The SpatialExtremes package aims to provide tools for modeling spatial
extremes. Many environmetal processes are spatial by nature and the
knowledge of the univariate/multivariate distribution of extremes is
not enough. This package aims to fill this gap by using several
approaches. Currently, the modeling is performed through the
max-stable framework. Max-stable processes are the extension of the
extreme value theory to random fields. Later, different approaches
will be implemented such as the latent variable and the copula based
methodologies.
The development of the package has been financially supported by the
Competence Center Environment and Sustainability (CCES) and more
precisely within
the
EXTREMES
project.
Features
Currently, the SpatialExtremes package models spatial extremes by
fitting max-stable processes to data using composite likelihood
maximisation. Many tools to characterize the spatial behaviour are
also implemented.
In a nutshell, the SpatialExtremes packages can:
- Fit max-stable processes to data
- Estimate the extremal coefficient
- Allow for prediction
- Fits penalized splines with radial basis functions
- Plot the covariance and the madogram to better understand how
evolve dependence in space
The SpatialExtremes Package
in a Few Lines
In this section, we explicit some of the most useful functions of
the package. However, for a full description, users may want to
have a look to the package vignette and the html help of the
package.
Fit a max-stable process - assuming unit Frechet
margins:
Fit a max-stable process - allowing for common GEV
margins
fitmaxstab(data, coord, "gauss", loc.form = y ~ lon, scale.form
= y ~ lat, shape.form = y ~ 1)
loc.form <- y ~ rb(lon, knots, degree, penalty)
fitmaxstab(data, coord, "gauss", loc.form = loc.form, scale.form =
y ~ lat, shape.form = y ~ 1)
Fit a p-spline
cv(y, x, knots, degree); gcv(y, x, knots, degree);
rbpspline(y, x, knots, degree, penalty = "gcv");
rbpspline(y, x, knots, degree, penalty = "cv");
rbpspline(y, x, knots, degree, penalty = .2);
Model selection
Plots
covariance(sill = 1, range = 1, smooth = 0.5, cov.mod = "whitmat");
madogram(data, coord, which = "mado")
extcoeff(fitted.object);
map(fitted.object, "quant", ret.per =
50)
condmap(schlather, c(1, 1), seq(0, 10, length
= 20), seq(0,10, length = 20))
fitextcoeff(data, coord); fitextcoeff(data, coord, angles =
seq(-pi, pi, length = 4))
profile(fitted.object, "cov11", range = c(80, 200))
fitted <- rbpspline(y, x, knots, degree); lines(fitted, col =
2)
Manuals
We have written a
package
vignette to help new users. This user's guide is a part of the
package - just run vignette("SpatialExtremesGuide") in an R console
once the package is loaded.
Contribute to the Project
If you are
interested in joining the project, you must first create an
R-forge
account. Then, just
go
here.
Any suggestions, feature requests,
bugs:
select the appropriate tracker Author: Mathieu
Ribatet
(homepage)