maxLinear: an R
package for conditional sampling of
max-stable random fields.
Author: Yizao Wang (homepage)
Please contact
Yizao
for any problems.
From 2013, maxLinear is no longer contributed to CRAN. It has to be installed as a local package. See instruction below.
Overview
The package focuses on the conditional sampling for max-linear models,
addressed in Wang and Stoev (2011). The max-linear models cover a large
class of max-stable random fields. Therefore, our package provides a
computational tool for prediction on such random fields. Namely, the
package produces samples from the exact conditional
distribution,
based on multiple obseravtions. In practice, our package can deal with
max-linear models with 10000
hidden random variables and produce conditional samples of the entire
random field within seconds. The examples are based on the discrete
Smith model (Smith 1990, de Haan and Pereira, 2006). The core part of
the
package is written in C++.
Our package can also simulate the (unconditional) max-linear random
fields. However, some classes of stationary max-stable random fields
can
be done in a different way by the package RandomFields
(see Schlather 2002).
Installation
1. Download the R package installation
file and
2. Install the package by the following command:
R CMD INSTALL maxLinear_1.1.tar.gz
Documentation
pdf
Demos
The following commands run the two demos in R:
demo(demoSampling)
demo(demoConditionalSampling)
on sampling
and conditional
sampling from the Smith model.
Some plots in Wang and Stoev 2011 were produced by these codes.
(In this case, R package "fields"
is required for output.) |
|
References
- Reinhard Furrer and Douglas Nychka and Stephen
Sain. fields: Tools for Spatial Data, 2009, R package version 6.01. http://CRAN.R-project.org/package=fields
- Laurens de Haan and Teresa T. Pereira. Spatial
Extremes: Models for the Stationary Case. The Annals of
Statistics, Vol. 34, No. 1, 146-168. 2006.
- Martin Schlather. Models for Stationary
Max-Stable Random Fields. Extremes 5(1), 33-44. 2002.
- Richard L. Smith. Max-Stable Processes and
Spatial Extremes. Unpubished prepreint. 1990.
- Yizao Wang and Stilian A. Stoev. Conditional
Sampling for Spectrally Discrete Max-Stable Random Fields. Advances in Applied
Probability, Vol. 43(2), 2011, pp. 463-481. arxiv
Last updated: January 21, 2013
Version 1.1: I updated the package so that it now runs under R
2.15.2. The only change is to replace .First.lib by .onLoad in the
source code. I also updated
my note on writing R packages calling C/C++ (see the end).