Description Usage Arguments Value
A convenience function to carry out maximum likelihood estimation
using either optim
or nlm
.
1 2 3 |
dat |
the data to be fitted; can be in a variety of forms
as long as it is compatible with the |
mle_fn |
a function to compute the sum of the log-likelihoods
for a vector of parameters |
start |
either a vector of initial starting values for the parameters, or a function (which takes no parameters) used to generate a dispersed set of starting values. |
gr_fn |
an optional function to compute the gradients for the
parameters being estimated. See |
method |
the optimization algorithm to use. See
|
control |
a named list where options controlling the
optimization can be specified. See |
hessian |
a logical value; if true, the hessian matrix is estimated, allowing the derivation of standard errors and confidence intervals. |
alpha |
the width of the interval for the confidence intervals around parameters. Defaults to +/- two standard deviations. |
emStop |
the number of iterations used when attempting to generate viable starting values. |
nRep |
the number of times to repeat estimation using dispersed starting values. Only applicable when a function to generate starting values is provided. |
parNames |
an optional character vector giving a set of labels for the parameters being estimated. |
Forthcoming.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.