BookmarkSubscribeRSS Feed
deleted_user
Not applicable
am dealing with a problem to model longitudinal proportional data using both GEE (M1) and GLMM (M2). I am not sure if my syntax is correct especially for GEE since most SAS books only cover longitudinal "binary" data. I am even not sure if PROC GENMOD can handle GEE modeling for "repeated proportions". Both proportional and binary data belong to binomial distribution but the former one is in group level while the latter one individual level. Hope any one can share experience or opinion here.

Thanks

Jacob

===================================
M1: GEE
proc genmod data=dsn;
class ID group;
model num/den = time group / link=logit dist=binomial type3;
repeated subject=ID/type=ar(1);
run;

M2: GLMM
proc glimmix data=dsn;
class ID group;
model num/den = time group / link=logit dist=binomial solution;
random int time/subject=ID type=un;
run;

ID time num den rate group
1 1 4 5 0.8 A
1 2 3 4 0.75 A
1 3 3 3 1 A
2 1 6 10 0.6 B
2 2 5 5 1 B
2 3 8 10 0.8 B
3 1 1 2 0.5 A
3 2 2 5 0.4 A
3 3 3 5 0.6 A

Note that rate = num / den

sas-innovate-2024.png

Join us for SAS Innovate April 16-19 at the Aria in Las Vegas. Bring the team and save big with our group pricing for a limited time only.

Pre-conference courses and tutorials are filling up fast and are always a sellout. Register today to reserve your seat.

 

Register now!

New Learning Events in April

 

Join us for two new fee-based courses: Administrative Healthcare Data and SAS via Live Web Monday-Thursday, April 24-27 from 1:00 to 4:30 PM ET each day. And Administrative Healthcare Data and SAS: Hands-On Programming Workshop via Live Web on Friday, April 28 from 9:00 AM to 5:00 PM ET.

LEARN MORE

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