negLL.PLB.bins.species | R Documentation |
b
for the PLB model, given
species-specific binned data (MLEbins method)Calculate the negative log-likelihood of b for the PLB model,
given binned data where the bins can be different for each species, namely
the MLEbins method derived as equations (S.18) and (S.26) in MEPS paper.
Returns the negative log-likelihood.
Will be called by nlm()
or similar, but xmin
and xmax
will just be estimated
as the min of lowest bin and max of the largest bin (i.e. their MLEs),
no need to do numerically. See Supplementary Material of MEPS paper for derivation, and
the vignettes for example use.
negLL.PLB.bins.species(b, dataBinForLike, n, xmin, xmax)
b |
value of |
dataBinForLike |
table data frame (tbl_df) where each row is the count in a bin of a species, and columns (and corresponding mathematical notation in MEPS Supplementary Material) are:
|
n |
total number of counts |
xmin |
maximum likelihood estimate for |
xmax |
maximum likelihood estimate for |
negative log-likelihood of the parameters given the data
Andrew Edwards
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.