Generalized additive models in julia?


Is anyone using generalized additive models in julia?

I know I can link to pyGAM with PyCall or gam with RCall, but I find both packages don’t scale well. My current dataset is of the order 100million rows.

I’m willing to collaborate if somewhen has some code lying around or if someone could point me to some - preferably permissive - code to port to julia (pyGAM and R’s gam are both GPL).



Did you find any help for this project? It would be indeed very useful to have a top GAM fitting package in Julia…

I talked to someone at JuliaCon who does this.

Well, David, that’s a bit vague… How did he or she look like? :smile:



You could take one of the splines packages to create basis functions, add them to a design matrix, and fit with MixedModels, with random effects acting as a smoothing penalty, or even using MCMC. Look at Tutorial in biostatistics: spline smoothing with linear mixed models..

Has there been any developments in this regard? (Couldn’t find any but thought it’s worth asking because sometimes it’s hard to find some libraries)

2 years later… people are still Googling R mgcv equivalent in Julia


Has anything been done in this regard still now? would like to discuss and contribute if someone is interested.

1 Like

I haven’t seen this, I’d love to see this in Julia. Unfortunately I don’t have time to work on this rn…

1 Like

One solution can be use the GAM provided by R.
Find more at RDatasets · Julia Packages :melting_face: