BookmarkSubscribeRSS Feed
Ishor
Calcite | Level 5

Experts,

 

I am trying to conduct negative binomial distribution with a spline terms ( Outcome: count and predictor ( months); it is a time series analysis). Is there a way we can directly add spline in the model. 

 

I saw the following approach for Poisson distribution however negbin is not supported. 

 

 ods graphics on;
    
   proc gam data=equip;
       model removals=spline(month) / dist=Poisson method=gcv;
   run;

 

 

1 REPLY 1
StatDave
SAS Super FREQ
The negative binomial distribution is supported in the newer PROC GAMPL and should generally be used rather than PROC GAM. Or, you can fit the model in PROC GLIMMIX by adding an EFFECT statement to define the spline you want.

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
  • 1588 views
  • 2 likes
  • 2 in conversation