Computes group alphas and group factor scores for K groups of observations in distatis.
Computes group alphas and group factor scores for K groups of observations in distatis.
computePartial4Groups: Computes group alphas and group factor scores for K groups of observations used to compute the compromise (i.e., matrix S) in a distatis analysis.
computePartial4Groups(resDistatis, DESIGN)
Arguments
resDistatis: The results of a Distatis analysis (as performed by the DistatisR::distatis) function.
DESIGN: A Design vector describing the groups of observations
Returns
A list with
"GroupFS: "The K weighted mean coordinates
"groupAlpha: "The K alpha weights
Details
In DISTATIS, the compromise is computed as a weighted (with the alpha-coefficients) sum of the K pseudo-covariance matrices Sk, computePartial4Groups
sums all the alpha coefficients of a group to compute each group partial factor scores.