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-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!

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