calcLike | R Documentation |
Calculate maximum likelihood estimate of a parameter and its 95\
interval using the profile log-likelihood method, for a given
negative log-likelihood function and its arguments (other parameters and data).
Will likely give warnings that can safely be ignored (see
suppress.warnings
description below).
calcLike(
negLL.fn,
p,
vecDiff = 0.5,
vecInc = 0.001,
suppress.warnings = FALSE,
...
)
negLL.fn |
negative log-likelihood function that take arguments (parameters and data) in ... and returns a negative log-likelihood value. |
p |
starting point to calculate the maximum likelihood estimate |
vecDiff |
the range over which to test the negative log-likelihood to construct the confidence interval. Default is 0.5 and a symmetric range is tested for fitting size spectra, since for movement data sets in Table 2 of Edwards (2011; 92(6):1247-1257) the intervals were symmetric, so symmetric seems a good start. |
vecInc |
increments to try, the accuracy of the resulting bounds
will depend on this. Note that a resulting interval of, say,
(-2.123, -1.987) means that that interval is contained within the
true 95\
The true bounds lie between the stated lower bounds and between
the stated upper bounds. So reduce |
suppress.warnings |
If TRUE then suppress warnings from the |
... |
further arguments (including parameters and data) to |
list containing:
MLE: the maximum likelihood estimate
conf: the 95\
Andrew Edwards
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.