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 2025: Call for Content

Are you ready for the spotlight? We're accepting content ideas for SAS Innovate 2025 to be held May 6-9 in Orlando, FL. The call is open until September 16. Read more here about why you should contribute and what is in it for you!

Submit your idea!

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.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

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