Structs and Profile Types
Structs
The following structs are used to contain information on computed univariate, bivariate and sampled dimensional profiles. After evaluation they are stored in the LikelihoodModel.
LikelihoodBasedProfileWiseAnalysis.PointsAndLogLikelihood — TypePointsAndLogLikelihood(points::Array{Float64},
ll::Vector{<:Float64},
boundary_col_indices::Vector{<:Int64}=zeros(Int, 0)))Struct that stores an array of parameter points, their corresponding log-likelihood value and, in the case of univariate profiles, the column indices in points of the confidence interval parameters.
Fields
points: an array of points stored in columns, with each row corresponding to the respective index of each model parameter. For theUnivariateConfidenceStructtype, these points are stored in column-wise order of increasing interest parameter magnitude. For theBivariateConfidenceStructtype these points are stored in the order they are found.ll: a vector of log-likelihood function values corresponding to the point in each column ofpoints. This number is standardised so that regardless of whether the true log-likelihood function or an ellipse approximation of the function is evaluated, the value of the MLE point is 0.0.boundary_col_indices: a vector that is empty for theBivariateConfidenceStructtype and of length two for theUnivariateConfidenceStructtype. Contains the column indices inpointsof the confidence interval parameters for theUnivariateConfidenceStructtype. Default is an empty vector.
LikelihoodBasedProfileWiseAnalysis.AbstractConfidenceStruct — TypeAbstractConfidenceStructSupertype for confidence boundary storage structs.
Subtypes
LikelihoodBasedProfileWiseAnalysis.UnivariateConfidenceStruct — TypeUnivariateConfidenceStruct(confidence_interval::Vector{<:Float64},
interval_points::PointsAndLogLikelihood)Struct that stores the confidence interval of a given interest parameter as well as points sampled inside (and outside) the confidence interval and their corresponding log-likelihood values.
Fields
confidence_interval: a vector of length two with the confidence interval for a given interest parameter. If an entry has valueNaN, that side of the confidence interval is outside the corresponding bound on the interest parameter.interval_points: aPointsAndLogLikelihoodstruct containing any points that have been evaluated inside or outside the interval byget_points_in_intervals!, their corresponding log-likelihood function value and the column indices of theconfidence_intervalpoints ininterval_points.points. Points can be evaluated and stored that are outside the confidence interval so that log-likelihood profile plots are defined outside of the confidence interval.interval_points.pointsis stored in column-wise order of increasing interest parameter magnitude.
Supertype Hiearachy
UnivariateConfidenceStruct <: AbstractConfidenceStruct <: Any
LikelihoodBasedProfileWiseAnalysis.BivariateConfidenceStruct — TypeBivariateConfidenceStruct(confidence_boundary::Matrix{Float64},
internal_points::PointsAndLogLikelihood = PointsAndLogLikelihood(zeros(size(x, 1), 0), zeros(0)))Struct that stores samples produced by an AbstractBivariateMethod that are on the bivariate confidence boundary of two interest parameters at a given confidence level and, if save_internal_points=true, any internal points found during the method with their corresponding log-likelihood values. Use bivariate_methods() for a list of available methods (see bivariate_methods).
Fields
confidence_boundary: an array of boundary points stored in columns, with each row corresponding to the respective index of each model parameter. This array can contain points that are inside the bivariate confidence boundary if the method being used brackets between an internal point and a point on the user-provided bounds: these points will be on a user-provided parameter bound.internal_points: aPointsAndLogLikelihoodstruct containing points and their corresponding log-likelihood values that were found during a method, ifsave_internal_points=true. Default is an emptyPointsAndLogLikelihoodstruct (used ifsave_internal_points=false).
Supertype Hiearachy
BivariateConfidenceStruct <: AbstractConfidenceStruct <: Any
LikelihoodBasedProfileWiseAnalysis.SampledConfidenceStruct — TypeSampledConfidenceStruct(points::Array{Float64},
ll::Vector{<:Float64})Struct that stores samples produced by an AbstractSampleType that are within the confidence boundary of sample_dimension interest parameters at a given confidence level, with their corresponding log-likelihood values.
Fields
points: an array of points stored in columns, with each row corresponding to the respective index of each model parameter.ll: a vector of log-likelihood function values corresponding to the point in each column ofpoints. This number is standardised so that regardless of whether the true log-likelihood function or an ellipse approximation of the function is evaluated, the value of the MLE point is 0.0.
Supertype Hiearachy
SampledConfidenceStruct <: AbstractConfidenceStruct <: Any
Profile Types
Profile type is a Struct that specifies whether the profile to be taken uses the true loglikelihood function or an ellipse approximation of the loglikelihood function centred at the MLE (with optional use of parameter bounds).
LikelihoodBasedProfileWiseAnalysis.AbstractProfileType — TypeLikelihoodBasedProfileWiseAnalysis.AbstractEllipseProfileType — TypeAbstractProfileTypeSupertype for ellipse approximation profile types.
Subtypes
Supertype Hiearachy
AbstractProfileType <: AbstractProfileType <: Any
LikelihoodBasedProfileWiseAnalysis.LogLikelihood — TypeLogLikelihood()Use the true log-likelihood function for confidence profile evaluation. The methods IterativeBoundaryMethod and RadialRandomMethod are recommended for use with this profile type.
Supertype Hiearachy
LogLikelihood <: AbstractProfileType <: Any
LikelihoodBasedProfileWiseAnalysis.EllipseApprox — TypeEllipseApprox()Use an ellipse approximation of the log-likelihood function centred at the MLE with use of parameter bounds for confidence profile evaluation. The method RadialMLEMethod is recommended for use with this profile type.
Supertype Hiearachy
EllipseApprox <: AbstractEllipseProfileType <: AbstractProfileType <: Any
LikelihoodBasedProfileWiseAnalysis.EllipseApproxAnalytical — TypeEllipseApproxAnalytical()Use an ellipse approximation of the log-likelihood function centred at the MLE without use of parameter bounds for confidence profile evaluation. As no parameter bounds are involved, it can be analytically evaluated. The method AnalyticalEllipseMethod is recommended for use with this profile type - it analytically samples points on the confidence profile boundary using EllipseSampling.jl. Other methods can be used, but they will all be unable to find interest parameter points outside user-provided parameter bounds (although nuisance parameters will be allowed outside these bounds).
Supertype Hiearachy
EllipseApproxAnalytical <: AbstractEllipseProfileType <: AbstractProfileType <: Any
Index
LikelihoodBasedProfileWiseAnalysis.AbstractConfidenceStructLikelihoodBasedProfileWiseAnalysis.AbstractEllipseProfileTypeLikelihoodBasedProfileWiseAnalysis.AbstractProfileTypeLikelihoodBasedProfileWiseAnalysis.BivariateConfidenceStructLikelihoodBasedProfileWiseAnalysis.EllipseApproxLikelihoodBasedProfileWiseAnalysis.EllipseApproxAnalyticalLikelihoodBasedProfileWiseAnalysis.LogLikelihoodLikelihoodBasedProfileWiseAnalysis.PointsAndLogLikelihoodLikelihoodBasedProfileWiseAnalysis.SampledConfidenceStructLikelihoodBasedProfileWiseAnalysis.UnivariateConfidenceStruct