1. Home
  2. EUGAMMA procedure

EUGAMMA procedure

Calculates expected values of the upper parts of gamma distributions (D.B. Baird).

Options

BOUND = variate or scalar Boundary of upper 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 upper parts of gamma distributions. The calculation is for all values greater 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: ELGAMMA  ELNEGBINOMIAL ELPOISSON EUPOISSON 

GenStat Reference Manual 1 Summary section on: Basic and nonparametric statistics.

Example

CAPTION  'EUGAMMA example',!t('Expected values for scale 1...10',\
          'with a lower bound of 30, and shape parameter 2.');\
          STYLE=meta,plain
VARIATE   [VALUES=1...10] Scale
EUGAMMA   [BOUND=30] Scale; SHAPE=2; EXPECTEDVALUES=Expected
CALCULATE Means = Scale*2 "Means = Scale*Shape"
PRINT     Means,Expected; DECIMALS=0,3

Updated on April 15, 2024

Was this article helpful?