evaluate_stopover: Stopover model density evaluation.

View source: R/functions.R

evaluate_stopoverR Documentation

Stopover model density evaluation.

Description

Evaluates the CDF of a mixture of normal distributions, then returns the probability of being in a given bin.

Usage

evaluate_stopover(breaks, par, skeleton, DMs = list(), nS)

Arguments

breaks

The points to evaluate. The function return the probability of being in each bin defined by the breaks.

par

A vector of parameter values which should be relisted

skeleton

The skeleton to relist the parameters

DMs

A list of design matrices to be used when covaraites are included in the model.

nS

In the case where DMs is empty because we use no covariates, we need to know the number of sites to determine the number of points.

Value

A matrix of evaluated densities for the count at each site and location, or the single real number valued negative log likelihood


calliste-fagard-jenkin/GAI documentation built on July 26, 2022, 11:20 a.m.