Computes the matrix \(\Delta \Sigma_{c,j}\) resulting from the joint diagonalization for a given environment (cf. Eq.(7) in the paper). If the joint diagonalization was successful the matrix should be diagonal for all environments $j$.
computeDiagonalization(estConnectivity, X, env, whichEnv, main = NULL)
Estimate for connectivity matrix returned by backShift
.
Data matrix
Indicator of the experiment or the intervention type an observation belongs to (a numeric vector of length n).
Indicator for the environment for which the matrix \(\Delta\Sigma_{c,j}\)$ should be computed.
Optional title for plot; defaults to paste("Env.", whichEnv)