Compute likelihood profile confidence intervals of a TMB object by root-finding
Source:R/tmbroot.R
tmbroot.RdCompute likelihood profile confidence intervals of a TMB object by root-finding
in contrast to tmbprofile, which tries to compute
somewhat equally spaced values along the likelihood profile (which
is useful for visualizing the shape of the likelihood surface),
and then (via confint.tmbprofile) extracting a
critical value by linear interpolation,
Arguments
- obj
Object from
MakeADFunthat has been optimized.- name
Name or index of a parameter to profile.
- target
desired deviation from minimum log-likelihood. Default is set to retrieve the 95 if the objective function is a negative log-likelihood function
- lincomb
Optional linear combination of parameters to profile. By default a unit vector corresponding to
name.- parm.range
lower and upper limits; if
NA, a value will be guessed based on the parameter value andsd.range- sd.range
in the absence of explicit
parm.rangevalues, the range chosen will be the parameter value plus or minussd.rangetimes the corresponding standard deviation. May be specified as a two-element vector for different ranges below and above the parameter value.- trace
report information?
- continuation
use continuation method, i.e. set starting parameters for non-focal parameters to solutions from previous fits?
Value
a two-element numeric vector containing the lower and upper limits (or NA if the target is not achieved in the range), with an attribute giving the total number of function iterations used
Examples
if (FALSE) { # \dontrun{
runExample("simple",thisR=TRUE)
logsd0.ci <- tmbroot(obj,"logsd0")
} # }