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

logLik

Extracts Log-Likelihood


Description

Extract the pairwise log-likelihood for objects of class “maxstab” and “copula”

Usage

## S3 method for class 'maxstab'
logLik(object, ...)
## S3 method for class 'copula'
logLik(object, ...)

Arguments

object

An object of class “maxstab” or “copula”. Most often this will be the output of the fitmaxstab of fitcopula functions.

...

Other arguments to be passed to the logLik function.

Value

Standard logLik object (see logLik) except that it might actually correspond to the pairwise log-likelihood, e.g., for the class “maxstab”!

Author(s)

Mathieu Ribatet

See Also

Examples

##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", nugget = 0, range = 3,
smooth = 0.5)
fit <- fitmaxstab(data, locations, "whitmat")
logLik(fit)

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.