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 2025: Save the Date

 SAS Innovate 2025 is scheduled for May 6-9 in Orlando, FL. Sign up to be first to learn about the agenda and registration!

Save the date!

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