Skip to content

WIP ENH: SparseOLS - #2711

Open
josef-pkt wants to merge 1 commit into
statsmodels:mainfrom
josef-pkt:sparse_ols
Open

josef-pkt wants to merge 1 commit into
statsmodels:mainfrom
josef-pkt:sparse_ols

Conversation

@josef-pkt

Copy link
Copy Markdown
Member

see #2710

This has a first working version for SparseOLS with cov_type HC0 or nonrobust.

two main problems

  • Results subclasses LikelihoodModelResults which doesn't provide all the same results as RegressionResults -> try subclassing RegressionResults
  • generic cov_type handling needs refactoring in LikelihoodModelResults.__init__, and there is a stale cached bse if I don't empty the cache explicitly. Other cov_types are missing.

other issues:

  • Data handling, model.data is just a Dummy class that is needed for now for param_names (used in t_test), RegressionResults also need the has_constant information, e.g. for rsquared, and maybe needs other information in the data instance.
  • this should be easy to convert to SparseWLS by just adding a whiten method

tested currently against OLS for the main information that is also in the params table

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant