lines.krige.bayes {geoR}R Documentation

Add a (Bayesian) Estimated Variogram to a Plot

Description

Adds a variogram model to a plot with an empirical variogram. The estimate is a chosen summary (mean, mode or mean) of the posterior distribution returned by the function krige.bayes.

Usage

lines(x, max.dist,
                  summary.posterior = c("mode", "median", "mean"), ...)

Arguments

x an object of the class krige.bayes, typically output of the function krige.bayes.
max.dist maximum distance for the x-axis.
summary.posterior specify which summary of the posterior distribution should be used as parameter estimation. Options are "mean", "median" or "mode". See DETAILS below.
... arguments to be passed to the function lines.

Details

The functions krige.bayes produces samples of the posterior distribution of the parameters (sigma^2, phi and tausq.rel). For the option mode, the mode of (phi and tausq.rel) is used with the conditional (on thses two values) mode of sigma^2. For the options mean and median these summaries are computed from the samples of the posterior.

Value

A line with the estimated variogram plot is added to the plot in the current graphics device. No values are returned.

Author(s)

Paulo J. Ribeiro Jr. Paulo.Ribeiro@est.ufpr.br,
Peter J. Diggle p.diggle@lancaster.ac.uk.

References

Further information about geoR can be found at:
http://www.maths.lancs.ac.uk/~ribeiro/geoR.html.

See Also

krige.bayes and lines.

Examples

#See examples in the documentation of the function krige.bayes().

[Package Contents]