BookmarkSubscribeRSS Feed
Cruise
Ammonite | Level 13

Hi Folks:

 

I'm analyzing spatially correlated data and using proc countreg. My health outcome is the number infectious disease counts at each city. The covariates rate_c1, rate_c2 and rate_c3 are at city level (250 cities). And, two other covariates are at province level (17 provinces): rate_p1 and rate_p2. I thought having covariates at different municipal levels cause random error. Therefore, I defined groupid (PID which identifies each province) and errorcomp in the model as shown below. 

 

However, I get an error:

 

ERROR: Panel data models with spatial effects are not supported.

 

Am I using the correct SAS procedure when covariates are different levels and data has spatial auto-correlation?

Any pointers regarding the correct procedure to analyze a data with spatial effects with multi-level variables is greatly appreciated. 

 

proc countreg data=combined Wmat=Wmatrix groupid=PID;
   model n_outcome = rate_c1 rate_c2 rate_c3 rate_p1 rate_p2   
   / errorcomp=random dist=negbin offset=ln;
   spatialeffects rate1 rate3 rate4 rate_p1 rate_p2;
run;

sas-innovate-2024.png

📢

ANNOUNCEMENT

The early bird rate has been extended! Register by March 18 for just $695 - $100 off the standard rate.

 

Check out the agenda and get ready for a jam-packed event featuring workshops, super demos, breakout sessions, roundtables, inspiring keynotes and incredible networking events. 

 

Register now!

What is Bayesian Analysis?

Learn the difference between classical and Bayesian statistical approaches and see a few PROC examples to perform Bayesian analysis in this video.

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