simulPareto: Simulate Pareto random vectors

Description Usage Arguments Details Value References Examples

View source: R/rMvtPar.R

Description

simulPareto provides n replicates of the multivariate Pareto distribution associated to log-Gaussian random function with semi-variogram vario.

Usage

1
simulPareto(n, loc, vario, nCores = 1, cl = NULL)

Arguments

n

Number of replicates desired.

loc

Matrix of coordinates as given by expand.grid().

vario

Semi-variogram function.

nCores

Number of cores used for the computation

cl

Cluster instance as created by makeCluster of the parallel package. Make sure the random number generator has been properly initialized with clusterSetRNGStream().

Details

The algorithm used here is based on the spectral representation of the Brown–Resnick model as described in Dombry et al. (2015). It provides n replicates conditioned that mean(x) > 1 on the unit Frechet scale.

Value

List of n random vectors drawn from a multivariate Pareto distribution with semi-variogram vario.

References

Dombry, C., Engelke, S. and M. Oesting. Exact simulation of max-stable processes. Biometrika, 103(2), 303-317.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
#Define variogram function
vario <- function(h){
   1 / 2 * norm(h,type = "2")^1.5
}

#Define locations
loc <- expand.grid(1:4, 1:4)

#Simulate data
obs <- simulPareto(100, loc, vario)

r-fndv/mvPot documentation built on Jan. 10, 2020, 2:43 a.m.