dswah / pyGAM

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

[Feature Request] Allowing for random effects in Spline Term #329

Open knitzschke opened 1 year ago

knitzschke commented 1 year ago

Was looking through the documentation for pyGAM and the one feature I was curious about was using random effects for the spline term of a feature.

Comparing it to mgcv in R (my current task is to translate R code to python relevant version), there is a option to use the "re" in their spline functions.

m1_gam <- gam(response ~ s(subject, bs = 're') + ...

Has the team thought about adding that into pygam.terms.s() function? Or if there is a way and I just didnt read the documentation correct please feel free to correct me.