You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
missing tools: canonical correlation and ranktest #1111
used by ivreg for underidentification tests
I guess it should also be useful for sysreg
Johansen's cointegration test is also a test for matrix rank, but I didn't try to understand the details.
This would fit in statsmodels stats.
(Related other location for regression helpers is in statsmodels.tools and spread out
Where do I put a partial function for partialling out variables in linear regression?)
I looked at it briefly to see whether I want to reuse it for the ranktest.
It's many lines of code, all methods mixed together, and doing many things that I didn't need in this case.
my version is essentially 4 lines of code to get the correlations. (One of the definitions that I saw looked like 2 pinv and an eigvals.)
I don't think sklearn has statistics like Pillai's trace, ....
Looking at sklearn will be useful when we want to get more multivariate analysis.
Activity
josef-pkt commentedon Oct 10, 2013
trying an example
After
canonStata reports all the usual multivariate or repeated ANOVA statistics. Another place for sharing code?josef-pkt commentedon Oct 12, 2013
first version included in gmm_new PR #1105
ranktest assumes iid. no Kleibergen and Paap 2006 for robust cov_params yet
jseabold commentedon Oct 12, 2013
sklearn includes an implementation of canonical correlation using partial least squares, but I never tried to connect it to Stata's canon.
josef-pkt commentedon Oct 12, 2013
I looked at it briefly to see whether I want to reuse it for the ranktest.
It's many lines of code, all methods mixed together, and doing many things that I didn't need in this case.
my version is essentially 4 lines of code to get the correlations. (One of the definitions that I saw looked like 2 pinv and an eigvals.)
I don't think sklearn has statistics like Pillai's trace, ....
Looking at sklearn will be useful when we want to get more multivariate analysis.
josef-pkt commentedon Jun 24, 2016
https://github.com/statsmodels/statsmodels/blob/master/statsmodels/stats/multivariate_tools.py
has the basic canonical correlation, needs to move to statsmodels.multivariate
related reduced rank regression #2625
Johansen also has some notes on it