F.nLL {Rdistance} | R Documentation |
Return the negative log likelihood for a set of distance values
Description
Return value of the negative log likelihood for a vector of observed distances given a specified likelihood, number of expansion terms, and estimated parameters.
Usage
F.nLL(
a,
dist,
covars = NULL,
like,
w.lo = 0,
w.hi = max(dist),
series,
expansions = 0,
pointSurvey,
for.optim = F
)
Arguments
a |
A vector of parameter values for
the likelihood. Length of this vector must be
|
dist |
A vector of observed distances. All values must be between
|
covars |
Data frame containing values of covariates
at each observation in |
like |
String specifying the form of the likelihood.
Built-in distance functions at present are "uniform", "halfnorm",
"hazrate", "negexp", and "Gamma". To be valid, a function
named |
w.lo |
Lower or left-truncation limit of the distances. This is the minimum possible off-transect distance. Default is 0. |
w.hi |
Upper or right-truncation limit of the distances. This is the maximum off-transect distance that could be observed. Default is the maximum observed distance. |
series |
String specifying the type of expansion to
use series if |
expansions |
A scalar specifying the number of terms
in |
pointSurvey |
Boolean. TRUE if |
for.optim |
Boolean. If TRUE, values are multiplied
by 10^9 to help |
Value
A scalar, the negative of the log likelihood evaluated at
parameters a
, including expansion terms.
See Also
See uniform.like
and links there;
dfuncEstim