.
Let
denote the number of terms in
,
denote the number of variables in the
th term and
denote the number of columns of
corresponding to the
th term. The required size of
vinfo, denoted
is given by:
If the model includes a mean effect,
should be incremented by one.
The values
,
and
are not trivial to calculate as they require the formula describing the model to be fully expanded and the contrast / dummy variable encoding to be known. Therefore, if
lisx,
lplab or
lvinfo are too small and
,
NW_ARRAY_SIZE is returned and the required sizes for these arrays are returned in
,
and
respectively.