BookmarkSubscribeRSS Feed
DingTao
Calcite | Level 5

I have a dataset structured as repeated measurement and Mixed model for repeated measurement is used for analysis. The standard code to get average change from baseline (note that here we are comparing baseline with the mean of the last 4 visits) and the associated p-value has been posted below. I wonder based on this, how can I test the non-inferiority using a margin of -1, e.g., change from baseline is greater than -1. The null hypothesis is that this change will be smaller or equal to -1. Can anyone suggest how to write SAS for this test? 

 

 

 

proc mixed data=mydata;
  class id visit sex(ref='F');
  model change = age sex baseline visit*baseline/ ddfm=kr fullx;
  repeated visit / subject = id type = un;
  lsmeans visit ;
  estimate 'Average' Intercept 1 age 1 sex 0.5 0.5 
           visit 0 0 0 0 0 0.25 0.25 0.25 0.25 base & basemean 
           visit*base 0 0 0 0 0 &basemean1 &basemean1 &basemean1 &basemean1 / cl;
run;

 

 

 

 

sas-innovate-2024.png

Don't miss out on SAS Innovate - Register now for the FREE Livestream!

Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.

 

Register now!

How to Concatenate Values

Learn how use the CAT functions in SAS to join values from multiple variables into a single value.

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