BookmarkSubscribeRSS Feed
tina_ting
Fluorite | Level 6

Hello SAS experts,

 

I used the SAS code recommended in this link to perform an ITS analysis.

https://support.sas.com/kb/70/498.html

 

If I want to take the ITS code for a one-group, one-stage design with a binary response, and modify it to a  one-group, two-stage and two-group, two-stage design, how should I change it?

If I also want to include covariates (categorical variables), where in the syntax should I place those variables?

 

Thank you very much for your help!

 

/*one-group, one-stage, Binary Response*/
original month1-6
iv1=0/1 (at month3)
iv2=0/1 (at month5)
original month1= month1 original month2= month2 original month3= month3 original month4= month1 original month5= month2 original month6= month3 proc gee data=a; class id iv1; model y(event="1") = iv1 month iv1*month / dist=bin noint; repeated subject=id; run; proc gee data=a; class id iv1; model y(event="1") = iv1 iv1*month / dist=bin noint; repeated subject=id; effectplot fit(x=month plotby(pack)=iv1) / clm; effectplot fit(x=month plotby(pack)=iv1) / link clm; estimate 'm3 log odds' iv1 1 0 iv1*month 3 0 / ilink; estimate 'm4 log odds' iv1 0 1 iv1*month 0 1 / ilink; estimate 'm3 to m4 odds ratio' iv1 -1 1 iv1*month -3 1 / exp cl; store gee; run;

hackathon24-white-horiz.png

The 2025 SAS Hackathon Kicks Off on June 11!

Watch the live Hackathon Kickoff to get all the essential information about the SAS Hackathon—including how to join, how to participate, and expert tips for success.

YouTube LinkedIn

What is ANOVA?

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.

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