subcheckw computes the sum of squared differences of two formulas for the covariancematrix of composites
subcheckw(w, indicator, S, L, Scomp)vector of weights
vector describing with which exogenous composite the indicators are connected
covariance matrix of errors resulling from regession for loadings
matrix of loadings
covariance matrix of composites
out scalar, sum of squared differences