Skip to content

SUMM: tools for residual covariance structure  #1948

Open

Description

@josef-pkt

objective: collect the tools, functions or classes, for handling non-i.i.d. covariance structures

The idea is to get reusable components for a mix-and-match system as complement to the (more efficient) model specific implementations.

models:

  • panel/longitudinal oriented: GEE, MixedLM, Panel
  • other structures in WLS/GLS group: linear models with AR, heteroscedastic or SUR residuals.

estimators:

  • two-step/iterative: covariance of error term is calculated in a separate step, GEE, Panel, HetGLS, ...
  • one step estimator - MLE or REML: currently only MixedLM see also REML for FGLS type models #874

for two-step estimators we will need mainly the estimation of the covariance parameters and a whiten method,

see WLS/GLS cases GLSAR, GLSHet
some functions are in GEE (and a messy incomplete trial version in the sandbox)

for the one-step estimators, MLE, REML, we need also the log-determinant, and derivatives for numerical optimization and cov_params

see for example Mixed Effects model:_smw_solve and _smw_logdet for s*I + A*B*A'
what we need is something like statsmodels.stats.correlation_tools.FactoredPSDMatrix for diag + A*A'

related

  • ENH covariance for one-way groups #1646
  • there should be more comments or issues in the context of GEE
  • GLSAR Prais-Whinston ? (AR(1) only)
  • covariance tools in tsa, e.g. correlation implied by AR, ARMA

Activity

  1. josef-pkt commented on Oct 7, 2015

    @josef-pkt
    MemberAuthor

    Application for GMM #2640 (comment)
    We can prewhiten the moment conditions (nobs, k_moms) to remove "working correlation" across moments. This looks very general, and GEE would be a special case.
    All we need is a standalone class that can prewhiten an arbitrary (nobs, k) array, and have some functionality to do a first step or iterative estimation (which might be model specific or reasonably general as in GEE). (GEE has a one-dimensional residual as in NonlinearIV)

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