mcap | R Documentation |
Given a collection of points maximizing the likelihood over a range of fixed values of a focal parameter, this function constructs a profile likelihood confidence interval accommodating both Monte Carlo error in the profile and statistical uncertainty present in the likelihood function.
mcap(logLik, parameter, level = 0.95, span = 0.75, Ngrid = 1000)
logLik |
numeric; a vector of profile log likelihood evaluations. |
parameter |
numeric; the corresponding values of the focal parameter. |
level |
numeric; the confidence level required. |
span |
numeric; the |
Ngrid |
integer; the number of points to evaluate the smoothed profile. |
mcap
returns a list including the loess
-smoothed
profile, a quadratic approximation, and the constructed confidence interval.
Edward L. Ionides
2017
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.