m2LL.FPBK.nodet: Covariance Parameter Estimation Function.

View source: R/utils.R

m2LL.FPBK.nodetR 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 corModels documentation for possible models to use.

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.


sptotal documentation built on Dec. 12, 2022, 1:06 a.m.