Hi All,
I have data of an experiment on which I started working on for my own learning. The objective of the experiment is to investigate the effect of row spacing on grain moisture content that was measured in a 2x2 factorial (four replications) where each treatment (variety and row spacing) was measured weekly for grain moisture content till harvest.
I think the data/exp fits for repeated measure analysis? Following is the model:
options linesize=78;
Data moisture;
Input variety$ row_spac Block Week_1 to Week_10;
datalines;
Variety | Row_Spac | Block | Week_1 | Week_2 | Week_3 | Week_4 | Week_5 | Week_6 | Week_7 | Week_8 | Week_9 | Week_10 |
Variety_A | 30 | 1 | 68.33 | 65.08 | 58.42 | 54.42 | 51.25 | 44.92 | 40.08 | 31.50 | 26.25 | 17.56 |
Variety_A | 60 | 1 | 67.58 | 65.33 | 61.08 | 58.58 | 55.83 | 52.50 | 46.75 | 39.42 | 27.17 | 18.10 |
Variety_A | 22 | 1 | 69.08 | 65.50 | 59.33 | 55.08 | 51.17 | 45.92 | 38.67 | 33.33 | 29.00 | 17.00 |
Variety_A | 15 | 1 | 71.50 | 67.33 | 64.25 | 60.50 | 52.42 | 42.75 | 39.92 | 35.17 | 29.58 | 16.89 |
Variety_B | 30 | 1 | 67.00 | 62.67 | 58.67 | 54.83 | 53.17 | 46.83 | 39.58 | 31.67 | 26.83 | 19.30 |
Variety_B | 60 | 1 | 64.67 | 61.17 | 58.58 | 54.67 | 55.00 | 50.92 | 43.00 | 34.92 | 32.42 | 19.20 |
Variety_B | 22 | 1 | 67.42 | 62.17 | 59.67 | 55.25 | 51.17 | 44.50 | 38.58 | 34.25 | 27.83 | 17.60 |
Variety_B | 15 | 1 | 66.83 | 67.25 | 63.00 | 62.67 | 51.08 | 47.25 | 38.25 | 31.67 | 29.50 | 18.90 |
Variety_A | 15 | 2 | ||||||||||
Variety_A | 22 | 2 |
proc glm data=moisture;
class variety row_spac;
model Week_1 to Week_10 = row_spac|variety;
repeated time 10;
lsmeans row_spac variety;
run;
Please, suggest/comment advise on the sas model. I have tried running this model with some modifications but I do not get correct df (320-1). I must be making a mistake that I do not realize.Thank you.
Rpeated measures is suggested to use PROC MIXED procedure, see the example in the documentation-
Registration is now open for SAS Innovate 2025 , our biggest and most exciting global event of the year! Join us in Orlando, FL, May 6-9.
Sign up by Dec. 31 to get the 2024 rate of just $495.
Register now!
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.
Ready to level-up your skills? Choose your own adventure.