m2LL.FPBK.det: Covariance Parameter Estimation Function.

Description Usage Arguments Value

View source: R/m2LL.FPBK.det.R

Description

The primary purpose of m2LL.FPBK.det is to estimate the spatial covariance parameters using Maximum Liklihood when detection is included.

Usage

1
m2LL.FPBK.det(theta, zcol, XDesign, xcoord, ycoord, CorModel, pivec, Vnn)

Arguments

theta

is the parameter vector of (nugget, partialsill, range)

zcol

is the response vector of counts

XDesign

is the design matrix containing the covariates used to predict animal or plant abundance (including a column of 1's for the intercept).

xcoord

is a vector of the x spatial coordinates (in UTM)

ycoord

is a vector of the y spatial coordinates (in UTM)

CorModel

is the geostatistical spatial correlation model to be used. See the corModels documentation for possible models to use.

pivec

is a vector of estimated detection probabilities on each of the sites

Vnn

is the covariance matrix for the estimated detection probabilities

Value

A numeric output of minus 2 times the restricted log likelihood to be minimized by 'optim' to obtain spatial parameter estimates.


highamm/FPBK-with-Detection documentation built on Jan. 2, 2022, 6:35 a.m.