coef.mvr
is used to extract the regression coefficients of a
model, i.e. the $B$ in $y = XB$. An array of dimension
c(nxvar, nyvar, length(comps))
is returned. If cumulative = TRUE
, coef()[,,comps[i]]
are
the coefficients for models with comps[i]
components, for
$i = 1, \ldots, length(comps)$. Also, if intercept = TRUE
,
the first dimension is $nxvar + 1$, with the intercept
coefficients as the first row.
If cumulative = FALSE
, however, coef()[,,comps[i]]
are
the coefficients for a model with only the component comps[i]
,
i.e. the contribution of the component comps[i]
on the
regression coefficients.
model.matrix.mvr
returns the (possibly coded) matrix used as
$X$ in the fitting.