Click or drag to resize
Accord.NET (logo)

EmpiricalHazardDistributionEstimate Method (Double, 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
public static EmpiricalHazardDistribution Estimate(
	double[] time,
	double[] weights = null,
	SurvivalEstimator survival = SurvivalEstimator.FlemingHarrington,
	HazardEstimator hazard = HazardEstimator.BreslowNelsonAalen,
	HazardTiesMethod ties = HazardTiesMethod.Efron
Request Example View Source


Type: SystemDouble
The time of occurrence for the event.
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