negLL.PLB.binned | R Documentation |
Calculates the negative log-likelihood of the parameters b
, xmin
and
xmax
given binned data for the PLB model. Returns the negative
log-likelihood. Will be called by nlm()
or similar, but xmin
and xmax
will just be estimated as the minimum of lowest bin and maximum of the
largest bin, respectively, (since they are the MLEs), no need to do
numerically. Specifically this is the negative of the log-likelihood
function given in (A.70) of the MEE paper and (S.27) of the MEPS paper,
where the latter fixed a minor error in (A.75) of the MEE paper.
negLL.PLB.binned(b, w, d, J = length(d), xmin = min(w), xmax = max(w))
b |
value of b for which to calculate the negative log-likelihood |
w |
vector of length |
d |
vector of length |
J |
number of bins (length of |
xmin |
minimum value of bins, as an input to avoid repeatedly calculating |
xmax |
maximum value of bins, as an input to avoid repeatedly calculating |
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.