|
ProportionalHazardsGetLogLikelihoodRatio Method
|
Gets the Log-Likelihood Ratio between two models.
Namespace:
Accord.Statistics.Models.Regression
Assembly:
Accord.Statistics (in Accord.Statistics.dll) Version: 3.8.0
Syntax public double GetLogLikelihoodRatio(
double[][] input,
double[] time,
SurvivalOutcome[] output,
ProportionalHazards hazards
)
Public Function GetLogLikelihoodRatio (
input As Double()(),
time As Double(),
output As SurvivalOutcome(),
hazards As ProportionalHazards
) As Double
Request Example
View SourceParameters
- input
- Type: SystemDouble
A set of input data. - time
- Type: SystemDouble
The time-to-event before the output occurs. - output
- Type: Accord.Statistics.Distributions.UnivariateSurvivalOutcome
The corresponding output data. - hazards
- Type: Accord.Statistics.Models.RegressionProportionalHazards
Another Cox Proportional Hazards model.
Return Value
Type:
DoubleThe Log-Likelihood ratio (a measure of performance
between two models) calculated over the given data sets.
Remarks
The Log-Likelihood ratio is defined as 2*(LL - LL0).
See Also