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. 

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

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
  • 560 views
  • 0 likes
  • 1 in conversation