Hacktoberfest 2026: los issues que los mantenedores marcaron para octubre, abiertos y aptos para principiantes. Explorar issues de Hacktoberfest

How to get the absorbed coefficients?

Abierto
#366 2 comentarios 0 reacciones 0 asignados Ver en GitHub

Los mantenedores suelen responder en 1 día

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
4/5
Tiempo estimado
3-5 días
Aptitud para principiantes
25/100
Tipo de issue
Documentación
Claridad
Bastante claro
Estado de actividad
Estancado
Stack tecnológico
python
Área
data

Línea de trabajo

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.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

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.

Lenguaje dominante
Python
Estrellas
1.1k
Forks
203
Merge medio
3 h 26 min
PR fusionados (30 d)
115

Preparar el entorno

Este proyecto no incluye contenedor de desarrollo, Dockerfile ni guía de contribución, así que la configuración corre por tu cuenta: empieza por su README y consulta nuestra guía para la primera contribución para los pasos generales.

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de bashtage/linearmodels

Todos los issues de bashtage/linearmodels

Issues similares

Más issues de Python

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.