Skip to content

SUMM: GLM versus R glm: what's missing #2753

Open

Description

@josef-pkt

(It's the first time I go over the R glm documentation, and understand enough.)

We are close to having essentially all the features that are in R glm. A few things are missing:

several extra functions in R have methods that work with glm results objects.

  • anova: anova (3 versions stats, car and MASS) work also for glm and either do Wald or LR tests. stats anova also has rao score test.
    status: type 3 wald is available, compare_xxx is not, score_test is not advertised and still experimental
    my loglinear notebook has examples but no helper functions,
  • diagnostics: lmtest has several tests that work with glm objects. I didn't see any specialized tests yet, like Hosmer-Lemeshow gof
    http://stat.ethz.ch/R-manual/R-patched/library/stats/html/influence.measures.html also handles glm
    status: we have residuals and all/most basics but no unit tested diagnostic functions (some might work already, I haven't checked). We are not yet holding on to the last irls-WLS results for diagnostics
  • quasi: dispersion and "foreign" variance functions
    status: we have sandwiches and some things work or may work by "misusing" current implementation, but no official API nor unit tests
    see SUMM/ENH: dispersion modelling in GLM, exponential family #2889 for general dispersion modelling e.g. double exponential
  • more families, links: we have what's in R stats, some difficult ones in packages like Tweedie are missing. we have cloglog but not loglog (which R misnames cloglog)
  • weights: R glm has variance weights, but I didn't see frequency or case weights
  • effects/margins: I haven't checked yet what R has available. our margins follow Stata
  • ... ?

Todo: add links to open issues

  • tool/utility functions:
    • I'm missing some helper functions for looking at dispersion, e.g. calculate negativebinomial coefficient from poisson or negbin residuals.
    • parameter conversion functions, e.g. to scipy distributions (for simulation)

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