nllkLG: Negative log-likelihood function for the local Gibbs model

View source: R/nllkLG.R

nllkLGR Documentation

Negative log-likelihood function for the local Gibbs model

Description

Negative log-likelihood function for the local Gibbs model

Usage

nllkLG(par, ID = NULL, xy, rdist = c("fixed", "exp", "gamma", "weibull"),
  MCgrids, cov, lim, res, debug = FALSE)

Arguments

par

Vector of parameters, i.e. resource selection coefficients and parameters for the distribution of the radius.

ID

Vector of track IDs

xy

Matrix of observed locations

rdist

Distribution of availability radius ("fixed", "exp", "gamma", or "weibull")

MCgrids

List of Monte Carlo samples, with components gridr (if needed), gridc, and gridz. As output by MCsample.

cov

Array of covariates (one layer for each covariate)

lim

Limits of the covariate rasters.

res

Resolution of the covariate rasters.

debug

Logical. If TRUE, the function also returns the log-likelihood of each step


TheoMichelot/localGibbs documentation built on March 24, 2022, 5:56 a.m.