Repository navigation
ENH: add MultivariateLS - #8919
Conversation
| name = 'x%d' % (i) | ||
| L = np.zeros([1, k_xvar]) | ||
| L[i] = 1 | ||
| L[0, i] = 1 |
There was a problem hiding this comment.
this was a bug in previous code
4a39e4b to
65de7e8
Compare
65de7e8 to
f90c445
Compare
f90c445 to
0880fb5
Compare
|
all green, (unrelated failures in pre Install dependencies) core parts are finished and could be merged how do we put rsquared for each equation into the summary()? Main usecase for MultivariateLS are cross-equation hypotheses, single equation (endog) results are the same as OLS and can also be obtained from a list of OLS results. Stata mvreg allows for test case is based on |
|
AFAICS, we don't have a manova type mv_test that all slope coefficients are zero. missing helper function for constructing L P M test for use with t_test and wald_test (instead of mv_test). AFAIR, that's just |
|
missing model methods and results attributes res.resid AttributeError: 'MultivariateLSResults' object has no attribute 'resid' The model inherits from base Model which does not define prediction. similar might apply to other post-estimation diagnostics. |
|
maybe for later: |
|
my current version of example notebook https://gist.github.com/josef-pkt/8a492802eee3896c47b646ee11beb1f6 missing: mv_test L, M version, t_test, wald_test |
| res._fittedmod =_fittedmod | ||
| res.cov_resid = sscpr / df_resid | ||
| return MultivariateLSResultsWrapper(res) | ||
| return res |
Check warning
Code scanning / CodeQL
Unreachable code
|
not clear: why does confint have endog at axis=0, and exog in axis=1? params, bse, ... has exog at axis=0 and endog at axis=1 the mnlogit confint shape is since Nov 28, 2011 (version 0.9) |
|
missing cov_type: We can use score_obs, horizontally stacked, With full score_obs available, we get generically all standard nonrobust cov_types, but not HC3 and similar extensions/variations. hessian? |
|
I guess I should fix the confint shape even though it will be inconsistent with MNLogit |
6bae225 to
466e4c0
Compare
|
reminder |
466e4c0 to
dfef6bf
Compare
|
2 unrelated test failure, one in statespace, one in test_corrpsd.py I'm merging this now, but there is still work to do. main open/undecided
The other missing parts are enhancements and more unit test coverage. |
Multivariate linear model estimated with least squares
shape of params and similar structure in analogy to MNLogit
current version works for all basics, including results wrapper, t_test, ...
missing