pcoords
is not provided, then only V
,
the covariance matrix of the observed responses will be returned.
If pcoords
is provided, then Vp
and Vop
(the covariance matrix for predicted responses and between observed and
predicted responses, respectively) will also be returned.cov.st(coords, time, sp.type = "exponential",
sp.par = stop("specify sp.par argument"),
error.var = 0, smoothness = 0.5, finescale.var = 0,
t.type = "ar1", t.par = .5,
pcoords = NULL, ptime = NULL,
D = NULL, Dp = NULL, Dop = NULL,
T = NULL, Tp = NULL, Top = NULL)
time
and ptime
. Must be of size $n \times np$.pcoords
is supplied.pcoords
is supplied. Will be of size $n \times np$ The D
, Dp
, Dop
, T
, Tp
, Top
arguments are supplied to decrease the number of necessary computations needed when performing repetitive analysis or simulations. It is probably in the user's interest to not supply these arguments unless the duration of analysis is an important consideration. Note that these arguments override the information given in coords
, pcoords
, time
, and prime
, i.e., if dist1(coords) != D, then D is used in subsequent calculations, etc. This could create problems.
simple.cov.sp
coords <- matrix(rnorm(30), ncol = 3)
pcoords <- matrix(rnorm(90), ncol = 3)
time <- 1:10
ptime <- 1:30
cov.st(coords = coords, time = time, sp.type = "exponential",
sp.par = c(2, 1), error.var = 1, t.type = "ar1", t.par = .5,
pcoords = pcoords, ptime = ptime)
Run the code above in your browser using DataLab