corSpatial class,
representing a spatial correlation structure. This class is "virtual",
having four "real" classes, corresponding to specific spatial
correlation structures, associated with it: corExp,
corGaus, corLin, corRatio, and
corSpher. The returned object will inherit from one of these
"real" classes, determined by the type argument, and from the
"virtual" corSpatial class. Objects created using this
constructor must later be initialized using the appropriate
Initialize method.corSpatial(value, form, nugget, type, metric, fixed)nugget is FALSE, value can
have only one element, corresponding to the "range" of the
spatial correlation structure, which must be greater~ S1+...+Sp, or
~ S1+...+Sp | g, specifying spatial covariates S1
through Sp and, optionally, a grouping factor g.
When a grouping factor is presenFALSE."spherical",
"exponential", "gaussian", "linear", and
"rational". See the "euclidean" for the root sum-of-squares of distances;
"maximum" for the maximum difference; and "manhattanFALSE, in which case
the coefficients are allowed to vary.type argument and also
inheriting from class corSpatial, representing a spatial
correlation structure.Venables, W.N. and Ripley, B.D. (2002) "Modern Applied Statistics with S", 4th Edition, Springer-Verlag. Littel, Milliken, Stroup, and Wolfinger (1996) "SAS Systems for Mixed Models", SAS Institute.
corExp,
corGaus,
corLin,
corRatio,
corSpher,
Initialize.corStruct,
summary.corStruct,
distsp1 <- corSpatial(form = ~ x + y + z, type = "g", metric = "man")Run the code above in your browser using DataLab