Skip to content

BUG: MANOVA without from_formula raises exceptions #4903

Closed

Description

@josef-pkt

https://stackoverflow.com/questions/51840604/statsmodels-manova-indexerror-index-1-is-out-of-bounds-for-axis-0-with-size-1

mv_test creates 2-D array (row vector), but tries to index rows:

L = np.zeros([1, self.exog.shape[1]])
L[i] = 1

It's not clear to me whether or how we can construct hypothesis contrasts for user provided exog. That is, we don't have any information about the categorical variables defined by users like
terms = self.data.design_info.term_name_slices

fixing L[i] -> L[:, i] uses a hypothesis that the coefficients for any exog column is zero. similar to using np.eye(len(params)) as contrast matrix

Activity

  1. added this to the 0.10 milestone on Aug 14, 2018
  2. changed the title [-]BUG: MANOVA without interface raises exceptions[/-] [+]BUG: MANOVA without from_formula raises exceptions[/+] on Aug 14, 2018
  3. josef-pkt commented on Aug 14, 2018

    @josef-pkt
    MemberAuthor

    @yl565 Are you still available to check this and see whether the simple fix makes sense?

  4. added 2 commits that reference this issue on May 7, 2019
    c1da27e
    c3ab504
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions