g01mb returns the reciprocal of Mills' Ratio.
Syntax
C# |
---|
public static double g01mb( double x ) |
Visual Basic |
---|
Public Shared Function g01mb ( _ x As Double _ ) As Double |
Visual C++ |
---|
public: static double g01mb( double x ) |
F# |
---|
static member g01mb : x : float -> float |
Parameters
- x
- Type: System..::..DoubleOn entry: , the argument of the reciprocal of Mills' Ratio.
Return Value
g01mb returns the reciprocal of Mills' Ratio.
Description
References
Gross A J and Clark V A (1975) Survival Distributions: Reliability Applications in the Biomedical Sciences Wiley
Error Indicators and Warnings
None.
Accuracy
In the left-hand tail, , if the safe range parameter (x02am), then is returned, which is close to the true value.
The relative accuracy is bounded by the effective machine precision. See s15ag for further discussion.
Parallelism and Performance
None.
Further Comments
If, before entry, is not a standard Normal variable, it has to be standardized, and on exit, g01mb has to be divided by the standard deviation. That is, if the Normal distribution has mean and variance , then its hazard rate, , is given by
Example
The hazard rate is evaluated at different values of for Normal distributions with different means and variances. The results are then printed.
Example program (C#): g01mbe.cs