Hacktoberfest 2026: die Issues, die Maintainer für den Oktober markiert haben – offen und einsteigerfreundlich. Hacktoberfest-Issues durchsuchen

How to get the absorbed coefficients?

Offen
#366 2 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen

Maintainer antworten meist innerhalb von 1 Tag

Dieses Issue hat noch niemand übernommen.

Bewertung

Schwierigkeit
4/5
Geschätzter Aufwand
3-5 Tage
Anfängerfreundlichkeit
25/100
Issue-Typ
Dokumentation
Klarheit
Größtenteils klar
Aktivitätsstatus
Veraltet
Tech-Stack
python
Bereich
data

Rechercherichtung

Start with the public AbsorbingLS and AbsorbingLSResults interfaces, focusing on absorbed_effects and fitted_values. Use a small example with categorical D and X to trace what these results represent. Done when the documentation explains whether the absorbed coefficients can be recovered and how the reported values relate to the fitted values.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Beschreibung

I do a y = Xβ + Dθ + e by using the AbsorbingLS, where D is an absorbed category variable.

I want to get the value of θ. I fail to find it in the AbsorbingLSResults. I find the absorbed_effects, which has the dimension of the obs. I think this might be Dθ, however I find it have the number of unique values different from the number of the categories in D and thus I am confused about what this absorbed_effects is.

In addition, I want to know how can I get the value of Xβ when X contains other category variables. I have tried using dmatrix to create X and doing Xβ = np.asarray(X) @ res.params.values.reshape(-1,1). But the sum of Xβ and absorbed_effects is different from res.fitted_values.

Thanks.

Vorherrschende Sprache
Python
Sterne
1.1k
Forks
203
Ø Merge
3 Std. 26 Min.
Gemergte PRs (30 T.)
115

Entwicklungsumgebung

Dieses Projekt bietet weder Dev-Container noch Dockerfile noch Beitragsleitfaden – die Einrichtung liegt bei Ihnen. Beginnen Sie mit der README; die allgemeinen Schritte stehen in unserem Leitfaden für den ersten Beitrag.

Erste Schritte

  1. Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
  3. Forken Sie das Repository und arbeiten Sie in einem Branch.
  4. Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.

Mehr aus bashtage/linearmodels

Alle Issues in bashtage/linearmodels

Ähnliche Issues

Weitere Issues zu Python

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.