print: Printing objects of classes defined in the SpatialExtreme...

printR Documentation

Printing objects of classes defined in the SpatialExtreme packages

Description

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

Usage

## S3 method for class 'pspline2'
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

##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

SpatialExtremes documentation built on April 19, 2022, 5:06 p.m.