Yes, a subject specification is required. If there are no subject blocks and all data should be regarded as a single subject, then specify subject=intercept.
Thanks for your suggestion!
When I try the code below, it works.
However, the standard error of SP(SPH) was showed "." in the covariance parameter estimates.
The odds ratios do not change no matter I change the type of covariance to vc or cs. Is it correct?
The ID is the unique ID for case and control and the "x_cor" and "y_cor" are the coordinate information.
The geographic distribution of case and control points are very similar.
PROC GLIMMIX data=BROWN;
CLASS ID;
MODEL DISEASE= ode200m grass200m
EM1/ dist=binary solution oddsratio;
random _residual_ /subject=ID
type=sp(sph) (x_cor y_cor);
output out=abd pred=p resid=r;
RUN;
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 25. Read more here about why you should contribute and what is in it for you!
ANOVA, or Analysis Of Variance, is used to compare the averages or means of two or more populations to better understand how they differ. Watch this tutorial for more.
Find more tutorials on the SAS Users YouTube channel.