BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
aarona
Calcite | Level 5

SAS OnDemand is having problems reading my repeated measures data due to time of previous row ending at time 3 and new row starting at time 1

aarona_0-1612569923646.png

I begin my code with : 

data Cover;

 infile '~/Projects/Cover RCBD data 1.csv' dlm = "," firstobs = 2;

input subject $ herbicide $ time cover @@;

run;

Is there a way to get around the following problem :

aarona_1-1612570235170.png

Thank you for all for spending the time to help me with my coding problems today 

1 ACCEPTED SOLUTION

Accepted Solutions
Tom
Super User Tom
Super User

It is complaining because you data is not sorted by TIME.

You need to sort the data before telling SAS that the data is sorted.

proc sort data=Cover;
  by time;
run;

View solution in original post

1 REPLY 1
Tom
Super User Tom
Super User

It is complaining because you data is not sorted by TIME.

You need to sort the data before telling SAS that the data is sorted.

proc sort data=Cover;
  by time;
run;

SAS Innovate 2025: Call for Content

Are you ready for the spotlight? We're accepting content ideas for SAS Innovate 2025 to be held May 6-9 in Orlando, FL. The call is open until September 25. Read more here about why you should contribute and what is in it for you!

Submit your idea!

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