maxgrid: Identifies the coordinates of the maximum on a grid

Description Usage Arguments Value See Also Examples

View source: R/plots.R

Description

Finds the maximum likelihood point from a maxgrid object.

Usage

1
maxgrid(dg)

Arguments

dg

an object returned by a dens.grid call.

Value

returns a list l including parameters used in the dens.grid call of l$params, the coordinates of the maximum on the grid l$xy, and the value of the maximum l$value.

See Also

plot3d.densgrid for a 3D visualisation of the computed values on the grid.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
n.site<-2
xy<-matrix(runif(2 * n.site, 0, 0.5), ncol = 2)
param<-c(0.5,1.5)
n.obs<-2
library(SpatialExtremes)
data<-t(rmaxstab(n.obs, xy, "whitmat",
                 nugget = 0, range = param[1], smooth = param[2]))
d<-dens.grid.maxstable(data,c(NA,NA),seq(0.1,1,length=3),seq(1,2,length=3),
                       category="normal",
                       spatial=list(sites=xy,family=spatialWhittleMatern))
maxgrid(d)$xy

HiDimMaxStable documentation built on May 29, 2017, 6:20 p.m.