Learn R Programming

SpatialExtremes (version 1.7-0)

logLik: Extracts Log-Likelihood

Description

Extract the pairwise log-likelihood for objects of class ``maxstab''

Usage

## S3 method for class 'maxstab':
logLik(object, \dots)

Arguments

object
An object of class ``maxstab''. Most often this will be the output of the fitmaxstab function.
...
Other arguments to be passed to the logLik function.

Value

  • Standard logLik object (see logLik) except that this is the pairwise log-likelihood!

See Also

logLik

Examples

Run this code
##Define the coordinates of each location
n.site <- 30
locations <- matrix(5 + runif(2*n.site, 0, 10), ncol = 2)

##Simulate a max-stable process - with unit Frechet margins
data <- rmaxstab(30, locations, cov.mod = "whitmat", sill = 1, range = 3,
smooth = 0.5)
fit <- fitmaxstab(data, locations, "whitmat")
logLik(fit)

Run the code above in your browser using DataLab