$MIX
Marks the beginning of the abbreviated code for the MIX routine.
|
|
Discussion
The $MIX record is used to describe the mixture probabilities of a
mixture model. It is evaluated with individual records.
$MIX block may not include EXIT, CALL , DO WHILE / ENDDO
statements, or COMRES, CALLFL options.
Assignment and conditional statements
Left-hand quantities
NSPOP: the number of sub-populations (mixture components). It must be defined during problem initialization (whenICALL=1).P(m),m=1..., NSPOP, the probability of certain subject belonging to subpopulationm. ThusP(m)'s must sum to 1.Phas aliasMIXPin the$MIXblock.
Right-hand quantities and conditionals:
THETA.MIX-defined variables.ICALL.-
Data items listed in DATA option of the
$CONTRrecord, e.g.,1 2$INPUT ... STDY ... $CONTR DATA=(STDY)so that
STDYcan be used in$MIX.STDY(j)refers to the value ofSTDYon thej'th observation record of the individual record. TEMPLT may be used; MIXNUM: global variable for subpopulation index. DuringICALL=4(simulation),MIXNUMis randomly selected. DuringICALL=3(estimation) and thePASSsubroutine used, or whenICALL=5orICALL=6,MIXNUMequals toMIXEST.MIXEST: global variable for the estimated index. whenICALL=3,5,6, and atICALL=2whenCOMACT \= 0,MIXESTis the the estimated indexmof the subpopulation with highestP(m)for the individual. This can be seen as the subpopulation to which the individual is classified. In NM73+, whenICALL=4,MIXESTequals toMIXNUM. At other times the variable is not meaningful.-
MIXP: global array of probabilities of the mixture components, as the internal storage of thePvariable.MIXPmay be encoded in one of the three ways below:1 2 3MIXP(MIXNUM) MIXP ! index default to MIXNUM MIXP(m)The third encoding requires that the index
mnot exceed the value ofMMXinSIZES. - Some global Variables in addition to
MIXNUM,MIXEST, andMIXP. - Reserved variable
NEWIND,ETA,EPS,ERR,COM.
Variables defined in $MIX are not stored in module NMPRD4 for
output thus may not be specified in $TABLE.
Record order
Follows $SUBROUTINES.
See also: COMACT;