Skip to content

likelihood ratio type tests, compare_xxx for nested models #1358

Open

Description

@josef-pkt

comment for RLM:
Hampel et al 1986 p 347 use scale from full model in estimation of reduced model, but doesn't matter asymptotically
(SAS for rsquared estimates both mean and sigma for null model (only constant), but uses scale of full model for standardizing residuals in comparison).

similar question shows up in other models and tests, where difference might not even be positive, e.g. GMM or Hausman test.

Implementation:

current compare_lr and compare_ftest just use the statistics from two independently estimated models.
Instead, use model information that we have in the restricted model, and reestimate with some constraints.

small issue: what to do if the fit options differ?
We raise if really inconsistent.
We reestimate based on options in full model

Activity

  1. added a commit that references this issue on Feb 6, 2014
  2. josef-pkt commented on Feb 6, 2014

    @josef-pkt
    MemberAuthor

    In above commit PR #1341 RLMResults.compare_lrtype I added different options. I needed them to reverse-engineer the results of SAS and didn't delete "not recommended" options.
    (for rsquared SAS doesn't fix the scale in the regression on constant, however it uses the full scale as fixed for the nested model in compare_lrtype equivalent.)

  3. josef-pkt commented on Jul 6, 2014

    @josef-pkt
    MemberAuthor

    this applies also to GMM.compare_j and for comparison in GLM which should use fixed scale

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

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions