|
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
)
Public Shared Function Estimate (
time As Double(),
outcome As Integer(),
Optional weights As Double() = Nothing,
Optional survival As SurvivalEstimator = SurvivalEstimator.FlemingHarrington,
Optional hazard As HazardEstimator = HazardEstimator.BreslowNelsonAalen,
Optional ties As HazardTiesMethod = HazardTiesMethod.Efron
) As EmpiricalHazardDistribution
Request Example
View SourceParameters
- 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:
EmpiricalHazardDistributionThe
EmpiricalHazardDistribution estimated from the given data.
See Also