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.

hackathon24-white-horiz.png

The 2025 SAS Hackathon has begun!

It's finally time to hack! Remember to visit the SAS Hacker's Hub regularly for news and updates.

Latest Updates

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