BookmarkSubscribeRSS Feed
aska_ujita
Obsidian | Level 7

Hello there, 

 

Is there someone that knows how to do contrast analyze in repeated measures?

 

I have a data with three treatments in cattle: the first group is a control, the second group got a habituation protocol and third group got another different habituation protocol. So I would like to test the control (first) vs habituated (second + third group); and test between the habituated ones (second vs third). The traits were collected in day 0 (no habituation in any groups) and day 14 (14 days after end of habituation of the second and third group) and day 28 (28 days after end of habituation of the second and third group). So I have 3 repeated measures.

 

Is it possible to use the proc Mixed?

 

proc mixed data=B; /*behaviour*/
class group breed animal day;
MODEL VAR=GROUP DAY BREED GROUP*DAY;
repeated DAY / type= ANTE(1) subject=animal*group;
random breed / subject=animal;
lsmeans group*day / pdiff;
lsmeans group / pdiff;
lsmeans day / pdiff;

run;

 

Thank you!!

1 REPLY 1
Ksharp
Super User

Better post it at Stat Forum . @SteveDenham  @lvm  are there .

Ready to join fellow brilliant minds for the SAS Hackathon?

Build your skills. Make connections. Enjoy creative freedom. Maybe change the world. Registration is now open through August 30th. Visit the SAS Hackathon homepage.

Register today!
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
  • 1 reply
  • 280 views
  • 1 like
  • 2 in conversation