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 .

sas-innovate-2024.png

Available on demand!

Missed SAS Innovate Las Vegas? Watch all the action for free! View the keynotes, general sessions and 22 breakouts on demand.

 

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
  • 1 reply
  • 273 views
  • 1 like
  • 2 in conversation