potential.xvalid {RGeostats}R Documentation

Perform the Cross-Validation in the Potential Framework

Description

Perform the Cross-Validation in the Potential Framework

Usage

potential.xvalid(db, dbgrd, dbtgt = NA, model = model.input(),
          neigh = neigh.input(), degree = 0, nugget.grd = 0, nugget.tgt=0,
          flag.dist.conv=FALSE, verbose = FALSE,
          radix = "Xvalid", modify.target = db.locmod())

Arguments

db

The db-class which contains the iso-potential information. This file must be defined in 1, 2 or 3-D. It must contain a 'layer' attribute.

dbgrd

The db-class which contains the gradient information. This file must contain as many 'gradient' variables as the space dimension. This file is compulsory.

dbtgt

The db-class which contains the tangent information. This file must contain as many 'tangent' variables as the space dimension. This file is optional.

model

The model-class which contains the structure describing the spatial characteristics of the Potential variable. The model is composed of one or several basic structures, which belong to a limited set of authorized structures:

  • Gaussian

  • Cubic

  • Spline (2nd-order)

An additional nugget effect is also authorized.

neigh

The neigh-class which contains the neighborhood description. Currently only the Unique Neighborhood is coded.

degree

Degree of the Intrinsic Random Function used to describe the Potential Random Variable. Note that the degree must be 2 if the model contains the 2nd order Spline Generalized Covariance.

nugget.grd

The value of the nugget effect on the Gradient component

nugget.tgt

The value of the nugget effect on the Tangent component

flag.dist.conv

When TRUE the validation error must be converted into distance.

verbose

Verbose option. If switched ON, the procedure displays the mean and variance of the cross-validation error and standardized error.

radix

Radix of the name given to the variables storing the results in the target Db.

modify.target

Decides whether or not the newly created variables will have their locator defined or not. For more information, see db.locmod.

Value

The target Db where the following variables have been added:

The last two variables are produced only if 'flag.dist.conv' is ON.


[Package RGeostats version 11.1.1 Index]