RandomFields-package {RandomFields}R Documentation

Simulation and Analysis of Random Fields

Description

The package RandomFields offers various tools for

  1. 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).

  2. model estimation (ML) and inference (tests) for regionalizd variables and data analysis,

  3. model estimation for (geostatistical) linear (mixed) models

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

Details

The following features are provided by the package:

  1. Simulation

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

  3. Prediction (for second-order random fields)

  4. Inference (for Gaussian random fields)

  5. Models

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

  7. Graphics

  8. Coordinate systems

  9. S3 and S4 objects

  10. Advanced users, 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 features 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, if (interactive()) 0.1 else 1)
z <- RFsimulate(model, x, x, n=6)

## select some data from the simulated data
xy <- as.matrix(expand.grid(x=x, y=x))
pts <- sample(nrow(xy), 100)
data <- matrix(ncol=6, 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.0.62 Index]