dswah / pyGAM

[HELP REQUESTED] Generalized Additive Models in Python
https://pygam.readthedocs.io
Apache License 2.0
871 stars 159 forks source link

Default coefficient for a linear term #351

Open GuyNYAMSI opened 4 months ago

GuyNYAMSI commented 4 months ago

Hello, and thank you for this package. I wanted to add an offset to my model, but I realize that it's not possible. An offset can be seen as a linear predictor with a variable having a fixed coefficient of 1 (g(mu) = f(x1) +x2 ) : x2 is an offset. Please, is it possible to fix the value of the coefficient in a linear term? For example, l(1, coef_estimate=1)? In this case, variable 1 (x2) will behave like an offset.