m2LL.FPBK.nodet {sptotal} | R Documentation |
Covariance Parameter Estimation Function.
Description
The primary purpose of m2LL.FPBK.nodet()
is to estimate the spatial
covariance parameters using REML. This is a helper function to slmfit()
.
Usage
m2LL.FPBK.nodet(theta, zcol, XDesign, distmat, CorModel, estmethod)
Arguments
theta |
is the parameter vector of (nugget, partialsill, range) |
zcol |
is the response vector of densities |
XDesign |
is the design matrix containing the covariates used to predict animal or plant abundance (including a column of 1's for the intercept). |
distmat |
is the distance matrix of the sampled sites |
CorModel |
is the geostatistical spatial correlation model to be used. See the |
estmethod |
is either "REML" for restricted maximum likelihood or "ML" for maximum likelihood. |
Value
A numeric output of minus 2 times the restricted log likelihood to be minimized by 'optim' to obtain spatial parameter estimates.
[Package sptotal version 1.0.1 Index]