Learn R Programming

SpatialExtremes (version 2.0-7)

print: 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 pspline2
print(x, …)
# S3 method for maxstab
print(x, digits = max(3, getOption("digits") - 3), …)
# S3 method for copula
print(x, digits = max(3, getOption("digits") - 3), …)
# S3 method for spatgev
print(x, digits = max(3, getOption("digits") - 3), …)
# S3 method for 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.

Examples

Run this code
# NOT RUN {
##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
# }

Run the code above in your browser using DataLab