|
GGDHAZName:
where k and c are shape parameters and GGDPDF and GGDCDF are the probability density and cumulative distribution functions of the generalized gamma distribution.
where <x> is a positive number, parameter, or a variable; <y> is a variable or a parameter (depending on what <x> is) where the computed generalized gamma hazard value is saved; <k> is a positive number, parameter, or variable that specifies the first shape parameter; <c> is a non-zero number, parameter, or variable that specifies the second shape parameter; and where the <SUBSET/EXCEPT/FOR qualification> is optional.
LET X2 = GGDHAZ(X1,GAMMA,POWER)
The second shape parameter can be negative (but not zero). Specifically, if c = -1, the generalized gamma reduces to the inverted gamma distribution.
"Statistical Distributions", 2nd. Edition, Evans, Hastings, and Peacock, Wiley and Sons, 1993 (chapter 18).
LET G = DATA 1 1 1 0.5 0.5 0.5 2 2 2 LET C = DATA 0.5 1 2 0.5 1 2 0.5 1 2 LET START = DATA 0.01 0.01 0.01 0.01 0.01 0.01 0.01 0.01 0.01 LET INC = DATA 0.01 0.01 0.01 0.01 0.01 0.01 0.01 0.01 0.01 LET STOP = DATA 5 5 5 5 5 5 5 5 5 . MULTIPLOT 3 3; MULTIPLOT CORNER COORDINATES 0 0 100 100 TITLE AUTOMATIC LOOP FOR K = 1 1 9 LET G1 = G(K) LET C1 = C(K) LET FIRST = START(K) LET LAST = STOP(K) LET INCT = INC(K) X1LABEL GAMMA = ^G1 X2LABEL C = ^C1 PLOT GGDHAZ(X,G1,C1) FOR X = FIRST INCT LAST END OF LOOP END OF MULTIPLOT
Date created: 10/9/2001 |