BookmarkSubscribeRSS Feed
Anita2016
Calcite | Level 5

Hello to everyone! First off all, I hace to apologize for my bad english. 

 

I am working with repeated measures in time, a longitudinal study.

I do not know how to interpretate the results of the table of LS means.

I need to know in every time, which treatment is diferent. I mean, I need to know time by time,if there exist stadictics differences between treatments, and which treatment is diferent from the other.

 

I am going to be very thankful. I really need your help! 

Here It attached the table of the LS means.

Tiempo=Time, is every times I have took the sample.

Tto=Treatment.

 


Presentation1.jpg
1 REPLY 1
SteveDenham
Jade | Level 19

I note that you have some non-estimable main effect LSmeans, so I am going to suggest the following, assuming the model is fit in PROC MIXED:

 

proc mixed data=yourdataset;
class treatment time subjectid;
model response_variable=treatment*time;
repeated time/subject=subjectid type=sp(pow)(t);
lsmeans treatment*time;
slice treatment*time / sliceby=time diff;
run;

Some things to note here.  I see that your time points are not equally spaced.  In yourdataset, define t=time, so that you will have a continous version of time to feed into the spatial power covariance structure.  The key here is the SLICE statement.  This should enable you to get differences between lsmeans for treatment at each time point where data exists for the treatments.  At some points, only one treatment was measured, so no difference can be calculated.

 

Steve Denham

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!

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
  • 1 reply
  • 1325 views
  • 0 likes
  • 2 in conversation