Printing objects of classes defined in the SpatialExtreme packages

Share:

Description

Methods for printing objects of classes introduced by the SpatialExtremes package.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
## S3 method for class 'pspline'
print(x, ...)
## S3 method for class 'maxstab'
print(x, digits = max(3, getOption("digits") - 3), ...)
## S3 method for class 'copula'
print(x, digits = max(3, getOption("digits") - 3), ...)
## S3 method for class 'spatgev'
print(x, digits = max(3, getOption("digits") - 3), ...)
## S3 method for class 'latent'
print(x, digits = max(3, getOption("digits") - 3), ...,
 level = 0.95)

Arguments

x

An object of class 'pspline', 'maxstab', 'copula', 'spatgev' or 'latent'. Most often, x will be the output of one of the following functions: rbpspline, fitmaxstab, fitcopula, fitspatgev or latent.

digits

The number of digits to be printed.

...

Other options to be passed to the print function.

level

A numeric giving the significance level for the credible intervals—class 'latent' only.

Value

Print several information on screen.

Author(s)

Mathieu Ribatet

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
##Define the coordinates of each location
n.site <- 30
coord <- matrix(5 + rnorm(2*n.site, sd = sqrt(2)), ncol = 2)
colnames(coord) <- c("lon", "lat")

##Simulate a max-stable process - with unit Frechet margins
data <- rmaxstab(30, coord, cov.mod = "whitmat", nugget = 0, range = 3,
smooth = 0.5)

## Printing max-stable objects
fit <- fitmaxstab(data, coord, "whitmat")
fit

## Printing spatial GEV objects
loc.form <- scale.form <- shape.form <- y ~ 1
fit <- fitspatgev(data, coord, loc.form, scale.form, shape.form)
fit

Want to suggest features or report bugs for rdrr.io? Use the GitHub issue tracker.