global {RGeoS}R Documentation

Geostatistical estimation variance of the arithmetic/kriging mean

Description

Geostatistical estimation variance of the arithmetic/kriging mean

Usage

global(dbin, model = model.input(), uc=c("1"), polygon = NA, mean = NA,
dbout=NA, calcul = "krige", ivar = 1, verbose = 1, ndisc=50, 
flag.regular=TRUE, flag.polin=TRUE, flag.wgt=FALSE)

Arguments

dbin

The db-class structure containing the data file

model

The model-class structure containing the Model information

uc

The vector of strings describing the drift conditions

polygon

The polygon-class structure which contains the polygon within which the mean value must be estimated.

mean

Array containing the mean of each variable, used in the case of Simple (Co-)Kriging

dbout

The db-class structure containing the discretization Grid File. If not provided, a grid is defaulted (the number of cells is given by the parameters 'ndisc').

calcul

Option for the calculation of the global estimation. It can be:

  • 'arith': for an estimation using the arithmetic mean

  • 'krige': for an estimation using kriging

  • 'trans': for an estimation using transitive method

ivar

Rank of the target variable (starting from 1). Note that the transitive global estimation is not available in the multivariate case.

verbose

1 for a verbose output; 0 otherwise

ndisc

Number of discretization steps used for:

  • the calculation of the mean covariogram over a cell (stratified case)

  • the calculation of the integral range (regular case)

flag.regular

When TRUE, use the regular transitive method; otherwise use the stratified transitive method.

flag.polin

If TRUE, only the input data which belong to the Polygon are used for the estimation. Otherwise, all the data are used (even if they do not lie within the polygon).

flag.wgt

When TRUE, a vector which contains the kriging weights is provided as a returned argument. This option is only available when calcul="krige".

Value

A list containing the following information:

* zest : Global estimation

* sse : Global estimation variance

* cv : CV

* wgt : a vector containing the kriging weights (of the whole data set, regardless of any selection) when calcul="krige", NA otherwise.


[Package RGeoS version 9.1.1 Index]