Description Usage Arguments Details Value See Also Examples
View source: R/2DLTfunctions.r
Calculates the negative log-likelihood for forward distance, y, and
perpendicular distance, x, for a given hazard and perpendicular density distribution.
1 | negloglik.yx(pars, y, x, hr, ystart, pi.x, w, length.b = 2, debug = FALSE)
|
pars |
c(b,logphi); hazard rate and density log-parameters in a vector (see details). |
y |
scalar or vector; forward distance observations |
x |
scale or vector; perp. distance observations |
hr |
hazard rate function |
ystart |
max forward distance at which could possibly detect animal (see details). |
pi.x |
perpendicular distance density distribution |
w |
perpendicular truncation distance. |
length.b |
length of the hazard rate parameter vector |
Must to ensure the hazard function has decayed to (very close to) zero by ystart.
The parameter vector, pars, must be passed in with two parameters for the hazard rate first,
then two parameters for perpendicular density gradient π(x) i.e. c(b,logphi).
negative log likelihood for forward distance, y and perpendicular distance x.
1 2 3 4 5 6 7 8 9 10 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.