Calculate observed matrix W for all G variables and G-E interactions. Denote Wj as the n x (q+1) sub-matrix of W corresponding the jth G variable.
The first column of Wj is the observation vector of the jth G variable, and the rest q columns of Wj are observations of G-E interactions.
Usage
matW(E, G)
Arguments
E
Observed matrix of E variables, of dimension n x q.
G
Observed matrix of G variables, of dimensions n x p.