Open CFWP opened 9 years ago
Hm, I'm unsure. I don't mind the old version. Suppose you want the _cov_ariance matrix of the scaled data and not the _cor_relation matrix, then you'd have to do it yourself. But maybe that's an unreasonable scenario?
With the old covML
, I think that a note or warning section in the documentation describing the issue will suffice. An example also in the documentation that shows how to get the correlation matrix would then be nice.
Does not everyone expect the covariance matrix of the scaled data to be the correlation matrix? In a sense, the old covML on scaled data gives a weighted correlation matrix. It's probably rare for users to want that. In that respect, the alternative version may be preferable. What do you think?
The old covML version did not recognize standardized/scaled data. Could then be the case that, when inputting scaled data, the output is not a correlation matrix.
So have made an alternative covML function (just called covML2 for now) to replace the old covML function. This alternative version returns the ML estimator of the covariance matrix when the data are not scaled, and the correlation matrix when the data are indeed scaled. Code:
Anders, what's your professional opinion on this?