BookmarkSubscribeRSS Feed
Cruise
Ammonite | Level 13

Hi folks:

 

@ballardw @Reeza 

Do you know how I could adjust the covariates in PROC COUNTREG  to the population size? In poisson regression model, for example, I define the denominator population using link and offset functions as shown in proc genmod below. According to SAS doc on proc countreg, offset seems to be intended for zero inflated models which is not the case for my data. I'd love to discuss with somebody who has an experience of using proc countreg about the proper use of offset and link functions. 

 

proc genmod data=have;
class vars/param=ref;
model OUTCOME=covariates/dist=negbin link=log offset=ln;
run;

my proc countreg looks like below using one covariate with spatial effect as an example. But I have to account the covariate to the population size now. 

 

proc countreg data=combined2 Wmat=Wmatrix;
   model n_outcomes = kindergarten_count / dist=negbin offset=ln;
   spatialeffects kindergarten_count;
run;  

model runs where ln=log(pop). but i'm not sure if this was the right decision. 

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

How to Concatenate Values

Learn how use the CAT functions in SAS to join values from multiple variables into a single value.

Find more tutorials on the SAS Users YouTube channel.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 0 replies
  • 496 views
  • 0 likes
  • 1 in conversation