Click or drag to resize
Accord.NET (logo)

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
)
Request Example View Source

Parameters

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: Double
The 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