| Library: | spatial |
| See also: | SPKRsurfls SPKRsurfgls SPKRexpcov SPKRgaucov SPKRsphercov SPKRprmat SPKRsemat SPKRcorrelogram SPKRvariogram SPKRmultcontours |
| Quantlet: | SPKRtrmat | |
| Description: | Evaluates a trend surface over a grid. |
| Usage: | mygrid = SPKRtrmat (obj, xl, xu, yl, yu, n) | |
| Input: | ||
| obj | list - (of type "trls" or "trgls") calculated by SPKRsurfls or SPKRsurfgls | |
| xl | scalar - lower limit in x-direction of the rectangle for grid | |
| xu | scalar - upper limit in x-direction of the rectangle for grid | |
| yl | scalar - lower limit in y-direction of the rectangle for grid | |
| yu | scalar - upper limit in y-direction of the rectangle for grid | |
| n | scalar - use n x n grid within the rectangle | |
| Output: | ||
| res | list - consisting of components z, xl, xu, yl, yu, n, type -- | |
| z | grid - for further useage with SPKRmultcontours | |
| xl | scalar - same as input value xl | |
| xu | scalar - same as input value xu | |
| yl | scalar - same as input value yl | |
| yu | scalar - same as input value yu | |
| n | scalar - same as input value n | |
| type | string - "trmat" | |
; load the spatial statistics library
library ("spatial")
; read a spatial data set
topo = read("topo.dat")
; calculate a polynomial regression surface of order 2
myres = SPKRsurfls (2, topo)
; calculate a 30 x 30 grid within [0, 6.5] x [0, 6.5]
; using trend surface myres
mygrid = SPKRtrmat (myres, 0, 6.5, 0, 6.5, 30)
A grid suitable for display through SPKRmultcontours.
| Library: | spatial |
| See also: | SPKRsurfls SPKRsurfgls SPKRexpcov SPKRgaucov SPKRsphercov SPKRprmat SPKRsemat SPKRcorrelogram SPKRvariogram SPKRmultcontours |