Solution interface
PLSolution
type is designed to contain the results of a profile likelihood analysis.
LikelihoodProfiler.PLSolution
— TypePLSolution{probType,P}
Contains the results of a profile likelihood analysis.
Fields
prob::probType
: The profile likelihood problemPLProblem
.profiles::P
: The computed profiles.elapsedTime::Float64
: The time elapsed during the computation.
Selectors
A number of selectors are available to extract information from the sol::PLSolution
object. These can be applied to each computed profile sol[i]
:
get_endpoints(sol[i])
: Returns the confidence interval (CI) endpoints, marking the intersection of the profile with thethreshold
.get_retcodes(sol[i])
: Returns the retcodes of the CI endpoints estimation.get_stats(sol[i])
: Returns the statistics of the profile computation.
Retcodes
sol::PLSolution
outputs the following retcodes, which are accessible with get_retcodes(sol[i])
function:
:Identifiable
- the profile has intersection with the predefinedthreshold
.:NonIdentifiable
- the profile doesn't intersect the predefinedthreshold
.:MaxIters
- maximum number of iterations reached while computing the profile. Seemaxiters
argument to theprofile
.:Failure
- the solver (optimizer or integrator) reported failure status, profiling was interrupted.
Visualization and tabular representation
The recipes are defined to visualize profiles saved in sol::PLSolution
with Plots.jl
package: plot(sol)
, plot(sol[i])
. The following keyword arguments can be used in plot
function:
steps::Bool
- whether to scatter steps performed by the profiler. Defaults totrue
.threshold::Bool
- whether to plotthreshold
defined inPLProblem
. Defaults toisfinite(threshold)
Also each profile contained in the sol::PLSolution
can be represented as a DataFrame with DataFrame(sol[i])
.