Calculates expected values of the lower parts of gamma distributions (D.B. Baird).
Options
BOUND = variate or scalar |
Boundary of lower part of distribution |
Parameters
SCALE = variates or scalar |
Scale parameters for the distributions |
SHAPE = scalars |
Shape parameters for the distributions |
EXPECTEDVALUES = variates or scalar |
Saves the expected values |
Description
ELGAMMA
calculates expected values of the lower parts of gamma distributions. The calculation is for all values less than or equal to the values specified, in either a scalar or a variate, by the BOUND
option. The SCALE
parameter specifies the scale parameters of the distributions, again in either a scalar or a variate. If BOUND
and SCALE
are variates, they must both be the same length. The SHAPE
parameter supplies a scalar defining the shape parameter of the distributions. The expected values can be saved by the EXPECTEDVALUES
parameter, in a scalar if both BOUND
and SCALE
are scalars, or otherwise in a variate.
Options: BOUND
.
Parameters: SCALE
, SHAPE
, EXPECTEDVALUES
.
See also
Directives: DISTRIBUTION
Procedures: EUGAMMA
ELNEGBINOMIAL
EUNEGBINOMIAL
EUPOISSON
ELPOISSON
GenStat Reference Manual 1 Summary section on: Basic and nonparametric statistics.
Example
CAPTION 'ELGAMMA example',!t('Expected values for Scale 1...10',\ 'with a lower bound of 2, and shape parameter 2.');\ STYLE=meta,plain VARIATE [VALUES=1...10] Scale ELGAMMA [BOUND=2] SCALE=Scale; SHAPE=2; EXPECTEDVALUES=Expected CALCULATE Means = Scale*2 "Means = Scale*Shape" PRINT Means,Expected; DECIMALS=0,3