Click or drag to resize
Accord.NET (logo)

EmpiricalHazardDistributionEstimate Method (Double, Int32, Double, SurvivalEstimator, HazardEstimator, HazardTiesMethod)

Estimates an Empirical Hazards distribution considering event times and the outcome of the observed sample at the time of event, plus additional parameters for the hazard estimation.

Namespace:  Accord.Statistics.Distributions.Univariate
Assembly:  Accord.Statistics (in Accord.Statistics.dll) Version: 3.8.0
Syntax
public static EmpiricalHazardDistribution Estimate(
	double[] time,
	int[] outcome,
	double[] weights = null,
	SurvivalEstimator survival = SurvivalEstimator.FlemingHarrington,
	HazardEstimator hazard = HazardEstimator.BreslowNelsonAalen,
	HazardTiesMethod ties = HazardTiesMethod.Efron
)
Request Example View Source

Parameters

time
Type: SystemDouble
The time of occurrence for the event.
outcome
Type: SystemInt32
The outcome at the time of event (failure or censored).
weights (Optional)
Type: SystemDouble
The weights associated with each event.
survival (Optional)
Type: Accord.Statistics.Distributions.UnivariateSurvivalEstimator
The survival estimator to use. Default is FlemingHarrington.
hazard (Optional)
Type: Accord.Statistics.Distributions.UnivariateHazardEstimator
The hazard estimator to use. Default is BreslowNelsonAalen.
ties (Optional)
Type: Accord.Statistics.Distributions.UnivariateHazardTiesMethod
The method for handling event ties. Default is Efron.

Return Value

Type: EmpiricalHazardDistribution
The EmpiricalHazardDistribution estimated from the given data.
See Also