-
Notifications
You must be signed in to change notification settings - Fork 2.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ENH: enhance _MultivariateOLS, MANOVA, code duplication, #8722
Comments
I'm trying to figure out more generally what we need for Multivariate linear model.
Do the inferential results differ from OLS with cluster robust standard errors? MultivariateOLS might be a misnomer if we add GLS inference. ie. only params and within inference are equivalent to OLS. Do we need a "blown up", memory inefficient version as reference, using kronecker product exog? What about GMM equivalent model? Note: this is all for balanced groups/panel case, i.e. same number of obs for each equation. aside: |
Inference in Multivariate linear model "MultivariateGLS"? this article looks looks useful, includes the eigenvalue based tests Rao, ... Stewart, Kenneth G. “Exact Testing in Multivariate Regression.” Econometric Reviews 16, no. 3 (January 1, 1997): 321–52. https://doi.org/10.1080/07474939708800390. a quick try comparing t_test with mv_test problem is how to define consistent df_resid for _multivariateOLS, I used
update The mv_test have df_denom (df_resid) that are neither of the two above. aside: multivariate L B M hypothesis only allows for within equation hypotheses, AFAICS, but joint over all or several equations. |
aside: Roy's greatest root df is not the same as in Steward 1997, it uses the max(p, q) quote
|
aside: current MANOVA is type 3, i.e. main factor is tested in the model that also includes interaction terms http://users.stat.umn.edu/~helwig/notes/aov2-Notes.pdf for univariate anova |
back to the roots Berndt, Ernst R., and N. Eugene Savin. “Conflict among Criteria for Testing Hypotheses in the Multivariate Linear Regression Model.” Econometrica 45, no. 5 (1977): 1263–77. https://doi.org/10.2307/1914072. One application for multivariate models are cost and consumption share estimation. |
I thought MANOVA is using
_MultivariateOLS
.However, it looks like they share code, helper functions, but manova doesn't reuse the _MultivariateOLS class.
There is also quite a bit of code duplication.
I was looking for access to the _MultivariateOLS instance in the MANOVA and it's test result instances, but it's not available.
_MultivariateOLS does not have a summary implemented, which makes it difficult to get a quick overview of results.
context #8713 trying to figure out usage and problems with multi-way manova.
based on an example: _MultivariateOLS runs an identical test to MANOVA
but
res
does not have any of the usual results attributes and methods, not evenparams
The text was updated successfully, but these errors were encountered: