Skip to content

BUG: GMM t_test #2446

Closed
Closed

Description

@josef-pkt

using a plain GMM, I get an exception in t_test

>>> print(res_gmm2.t_test(constraint))
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "m:\josef_new\eclipse_ws\statsmodels\statsmodels_py34\statsmodels\base\model.py", line 1202, in t_test
    r_matrix=r_matrix, cov_p=cov_p)))
  File "m:\josef_new\eclipse_ws\statsmodels\statsmodels_py34\statsmodels\sandbox\regression\gmm.py", line 1144, in cov_params
    covparams = self.calc_cov_params(moms, gradmoms, **kwds)
TypeError: calc_cov_params() got an unexpected keyword argument 'cov_p'
>>> 

Activity

  1. added this to the 0.7 milestone on Jun 10, 2015
  2. josef-pkt commented on Jul 1, 2015

    @josef-pkt
    MemberAuthor

    maybe for 0.7 still

    started here master...josef-pkt:fix_gmm
    but it's not correct yet, failed in treatment/IPW branch on TravisCI

  3. josef-pkt commented on Jul 2, 2015

    @josef-pkt
    MemberAuthor

    GMM doesn't seem to have unit tests for pvalues. They are printed by summary so they will be available through inheritance. adding use_t either True or False doesn't make the unit tests fail.

    (IV2SLS has test coverage for pvalues and t_test)

  4. josef-pkt commented on Jul 3, 2015

    @josef-pkt
    MemberAuthor

    fixed in #2497

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