
157A Simple Example
the formula into its components and store these in aPIPFS for the prognostic
index, aRndNumPFS for the random number. The three coefcients for the
equation can be stored in global variables iBetaSexPFS, iBetaAgePFS, and iBet-
aLDHPFS (Figure4.15). The Weibull parameters would be stored in global
variables as well: iScalePFS and iShapePFS.
The formula EP(aSex*iBetaSexPFS+aAge*iBetaAgePFS+aLDH*iBetaLD
HPFS) would be used with the values in the three attributes for each entity
and the three coefcients stored in the global variables to give the value of
aPIPFS. The value of aRndNumPFS would be drawn using the function RA