Skip to content

BUG: df_resid in miscmodels TModel is wrong #7767

Closed

Description

@josef-pkt

running the test case example with estimated df

nobs = 60
df_resid = 58
df_model = 1 ok 1 explanatory variable

df_null would be 3, 3 parameters constant, scale and df
k_params = df_model + constant + 2 (extra) = 4

however also nparams looks wrong, it only count exog, not + 2 extra
res.model.nparams, res.model.k_params, len(res.params)
(2, 4, 4)

It could be that I messed this up during refactoring of GenericLikelihoodModel, no unit tests for it in miscmodels.

Activity

  1. josef-pkt commented on Sep 30, 2021

    @josef-pkt
    MemberAuthor

    it looks like unit tests are against https://cran.r-project.org/web/packages/hett/index.html
    R commands are in test results module, but doesn't mention the package

    I think under full MLE and asymptotic normal distribution, df_resid is not used anywhere.
    aic, bic might be wrong.

  2. added this to the 0.14 milestone on Oct 28, 2022
  3. josef-pkt commented on Dec 5, 2022

    @josef-pkt
    MemberAuthor

    fixed in #8476

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

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions