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
canonical correlation analysis and partial least squares #3274
I wonder if there is any plan of including CCA and PLS in statsmodels. sklearn have a CCA implementation but didn't report tests results. I'd like to give CCA a try if this could be of interest to statsmodels.
One option would be to make it into a full class similar to what Kevin did for PCA #2004 and similar to the scikit-learn version. I didn't need any other things from the CCA when I wrote cancorr.
If standalone things of CCA are not really needed, then writing an application class like MANOVA might be the more useful or direct approach.
note PCA is in the new statsmodels.multivariate directory/path
Nobody is working on MANOVA. I'm working may way towards Multivariate Regression but I am still far away from MANOVA like results and hypothesis testing.
Reminder: We cannot use code that is copied from other sources that are not licence compatible with our BSD licence, e.g. GPL code is off-limits. But SAS and Stata, or similar, have good documentation for many methods and are my preferred references for what results might be useful to and expected by users. They often also include a good formula collection.
BTW: (I just remembered) you could start a manova.py as location for MANOVA in statsmodels.multivariate
Future multivariate statistics functionality should mostly go in there (with maybe some multivariate models next to their univariate version in the corresponding directories.)
Activity
josef-pkt commentedon Nov 17, 2016
Hi, It would be great if someone works more on multivariate methods.
I wrote a simple version of CCA that I needed mainly for a matrix rank test (for instrumental variables and two-stage least squares) https://github.com/statsmodels/statsmodels/blob/master/statsmodels/stats/multivariate_tools.py#L65
I added the MANOVA statistics mainly because it was a standard result in Stata that I could compare against. Those are missing the p-values.
see #1111 and #1114
One option would be to make it into a full class similar to what Kevin did for PCA #2004 and similar to the scikit-learn version. I didn't need any other things from the CCA when I wrote cancorr.
If standalone things of CCA are not really needed, then writing an application class like MANOVA might be the more useful or direct approach.
note PCA is in the new statsmodels.multivariate directory/path
yl565 commentedon Nov 20, 2016
MANOVA class sounds like the plan to me. If nobody is currently working on it, I'd like to give it a shot.
josef-pkt commentedon Nov 20, 2016
Nobody is working on MANOVA. I'm working may way towards Multivariate Regression but I am still far away from MANOVA like results and hypothesis testing.
Reminder: We cannot use code that is copied from other sources that are not licence compatible with our BSD licence, e.g. GPL code is off-limits. But SAS and Stata, or similar, have good documentation for many methods and are my preferred references for what results might be useful to and expected by users. They often also include a good formula collection.
josef-pkt commentedon Nov 22, 2016
BTW: (I just remembered) you could start a
manova.pyas location for MANOVA instatsmodels.multivariateFuture multivariate statistics functionality should mostly go in there (with maybe some multivariate models next to their univariate version in the corresponding directories.)
yl565 commentedon Nov 22, 2016
Thanks for the tip!
kris-singh commentedon Feb 16, 2017
Is cca implementation still open ?
josef-pkt commentedon Dec 23, 2017
update here:
MANOVA and CanCorr have been merged in #3291
PLS is still missing, but available in scikit-learn (without results statistics)