Description Usage Arguments Details Value See Also Examples
View source: R/2DLTfunctions.r
Uses optim
to obtain a MLE for the hazard function and animal
perpendicular distance distribution. Functional forms for the hazard and perpendicular distance
distribution must be specified.
1 2 |
y |
scalar or vector; forward distance observations |
x |
scale or vector; perp. distance observations |
b |
two-element vector of hazard rate parameters, some of whihc may be logged |
hr |
hazard rate function |
ystart |
max forward distance at which could possibly detect animal (see details). |
pi.x |
perpendicular distance density distribution |
logphi |
parameters for pi.x (some maybe logged) |
w |
perpendicular truncation distance. |
control |
see |
hessian |
return hessian. See also |
... |
arguments to be passed into |
corrFlag=0.7 |
Absolute parameter correlation value above which a warning is issued. |
Must to ensure the hazard function has decayed to (very close to) zero by
ystart
.
optim
fit object and
$hr
= hazard rate function used.
$pi.x
= perpendicular distance function used.
$ystart
= ystart max forward distance detection used.
$w
= perpendicular truncation distance used.
$b
= estimated hazard parameters
$dat
= data frame with data ($x
and $y
)
$logphi
AIC
AIC value
And if hessian=TRUE
:
vcov
variance covariance matrix. Will warn if there is a problem inverting
the hessian.
CVpar
Coefficient of variation for each paramter estimate.
error
Boolean, TRUE
if convergence!=0 or problem inverting the hessian,
or parameter correlation is exceeded.
1 2 3 4 5 6 7 8 9 10 11 12 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.