RandomFields-package {RandomFields}R Documentation

Simulation and Analysis of Random Fields

Description

The package RandomFields offers various tools for

  1. model estimation (ML) and inference (tests) for regionalized variables and data analysis,

  2. simulation of different kinds of random fields, including

    It can also deal with non-stationarity and anisotropy of these processes and conditional simulation (for Gaussian random fields, currently).

See http://ms.math.uni-mannheim.de/de/publications/software/ for intermediate updates.

Details

The following features are provided by the package:

  1. Bayesian Modelling

  2. Coordinate systems

  3. Data and example studies: Some data sets and published code are provided to illustrate the syntax and structure of the package functions.

  4. Estimation of parameters (for second-order random fields)

  5. Graphics

  6. Inference (for Gaussian random fields)

  7. Models

  8. Prediction (for second-order random fields)

  9. Simulation

  10. S3 and S4 objects

  11. Xtended features, especially for package programmers

Changings

A list of major changings from Version 2 to Version 3 can be found in MajorRevisions.

Changings lists some further changings, in particular of argument and argument names.

Update

Current updates are available through http://ms.math.uni-mannheim.de/de/publications/software.

Contributions

Thanks

Patrick Brown : comments on Version 3
Paulo Riberio : comments on Version 1
Martin Maechler : advice for Version 1

Financial support

Note

The following packages enable further choices for the optimizer (instead of optim) in RandomFields: optimx, soma, GenSA, minqa, pso, DEoptim, nloptr, RColorBrewer, colorspace

Author(s)

Martin Schlather, schlather@math.uni-mannheim.de http://ms.math.uni-mannheim.de/de/publications/software

References

See Also

See also RF, RM, RP, RR, RC, R.

Examples

RFoptions(seed=0) ## *ANY* simulation will have the random seed 0; set
##                   RFoptions(seed=NA) to make them all random again

# simulate some data first (Gaussian random field with exponential
# covariance; 6 realisations)
model <- RMexp()
x <- seq(0, 10, 0.1)
z <- RFsimulate(model, x, x, n=6)

## select some data from the simulated data
xy <- coordinates(z)
pts <- sample(nrow(xy), min(100, nrow(xy) / 2))
data <- matrix(nrow=nrow(xy), as.vector(z))[pts, ]
data <- cbind(xy[pts, ], data)
plot(z, data)

## re-estimate the parameter (true values are 1)
estmodel <- RMexp(var=NA, scale=NA)
(fit <- RFfit(estmodel, data=data))

## show a kriged field based on the estimated parameters
kriged <- RFinterpolate(fit, x, x, data=data)
plot(kriged, data)



[Package RandomFields version 3.1.50 Index]