Learn R Programming

geoR (version 1.1-5)

trend.spatial: Builds the Trend Matrix

Description

Builds the trend matrix according to the specification of the mean part of the model provided by the user.

Usage

trend.spatial(trend, coords = NULL)

Arguments

trend
specifies the mean part of the model. The options are: "cte" (constant mean - default option), "1st" (a first degree polynomial on the coordinates), "2nd" (a second degree polynomial on the coordinate
coords
an $n \times 2$ matrix containing in each row Euclidean coordinates. Needs to be provided only if trend = "1st" or trend = "2nd".

Value

  • An $n \times p$ trend matrix where $n$ is the number of spatial locations and $p$ is the number of mean parameters in the model.

References

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