BookmarkSubscribeRSS Feed
deleted_user
Not applicable
I'm trying to fit a generalized additive model as follows:

proc gam data=dataset;
class DOW season holiday;
model deaths=param(DOW season holiday)
spline(date)
spline(temperature)
spline(humidity)
spline(NO2)
spline(Ozone)
spline(SO2)
spline(PM25)
spline(PM10) / dist=Poisson method=gcv nodev=norefit;
output out=dataset_out p;
run;

However, I keep getting an error message that states, "The backfitting algorithm diverged for this model."

What does this mean and how can I fix it? Thanks!
1 REPLY 1
deleted_user
Not applicable
My hunch is that, Proc GAM may not be able to fit the non-linear curve. Try simplying the model by including less predictor variables..not sure if this will work

sas-innovate-2026-white.png



April 27 – 30 | Gaylord Texan | Grapevine, Texas

Registration is open

Walk in ready to learn. Walk out ready to deliver. This is the data and AI conference you can't afford to miss.
Register now and lock in 2025 pricing—just $495!

Register now

What is ANOVA?

ANOVA, or Analysis Of Variance, is used to compare the averages or means of two or more populations to better understand how they differ. Watch this tutorial for more.

Find more tutorials on the SAS Users YouTube channel.

Discussion stats
  • 1 reply
  • 2233 views
  • 0 likes
  • 1 in conversation