Hi everyone, I am currently running county-level data (3130 counties) to study the association between prescription rates (continuous, independent variable) and a county being labeled as "high-risk" (dependent variable, can be 1=high-risk or 0=non-high-risk). The prescription rates are at the county level, and so is the outcome variable "high-risk". While I'm not looking at state-level data, it's important to bear in mind that counties are clustered within states, so we need to account for clustering of counties within states. Based on this idea, should the "repeated" statement be for the county or the state? I am sharing 2 SAS codes below and would appreciate advise on what be more appropriate. Thank you so much! proc genmod data=dataset descending; CLASS State /param=ref; model highrisk= Opioid_Rx_Rate /dist=binomial link=logit; repeated subject = State/type=exch; estimate 'Opioid_Rx_Rate' Opioid_Rx_Rate 1 / exp; run; quit; OR proc genmod data=dataset descending; CLASS County /param=ref; model highrisk= Opioid_Rx_Rate /dist=binomial link=logit; repeated subject = County /type=exch; estimate 'Opioid_Rx_Rate' Opioid_Rx_Rate 1 / exp; run; quit;
... View more