Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

modeldef

Define a model for the spatial behaviour of the GEV parameters


Description

This function defines the model for the spatial behaviour of the GEV parameter.

Usage

modeldef(data, formula)

Arguments

data

A matrix representing the data. Each column corresponds to one location.

formula

A R formula. See details for further details.

Value

need to be documented

Author(s)

Mathieu Ribatet

See Also

Examples

## 1- A design matrix from a classical linear model 
n.site <- 5
coord <- matrix(rnorm(2*n.site, sd = sqrt(.2)), ncol = 2)
colnames(coord) <- c("lon", "lat")
loc.form <- loc ~ lat + I(lon^2)
modeldef(coord, loc.form)

## 2- A design and penalization matrix from a penalized smoothin spline
x <- sort(runif(10, -2, 10))
n.knots <- 3
knots <- quantile(x, prob = 1:n.knots / (n.knots + 2))
modeldef(x, y ~ rb(x, knots = knots, degree = 3, penalty = 1))

SpatialExtremes

Modelling Spatial Extremes

v2.0-9
GPL (>= 2)
Authors
Mathieu Ribatet [aut, cre], Richard Singleton [ctb], R Core team [ctb]
Initial release
2020-09-22

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.