DATA Step, Macro, Functions and more

Repeated Measure Analysis

Reply
Senior User
Posts: 1

Repeated Measure Analysis

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;

VarietyRow_SpacBlockWeek_1Week_2Week_3Week_4Week_5Week_6Week_7Week_8Week_9Week_10
Variety_A30168.3365.0858.4254.4251.2544.9240.0831.5026.2517.56
Variety_A60167.5865.3361.0858.5855.8352.5046.7539.4227.1718.10
Variety_A22169.0865.5059.3355.0851.1745.9238.6733.3329.0017.00
Variety_A15171.5067.3364.2560.5052.4242.7539.9235.1729.5816.89
Variety_B30167.0062.6758.6754.8353.1746.8339.5831.6726.8319.30
Variety_B60164.6761.1758.5854.6755.0050.9243.0034.9232.4219.20
Variety_B22167.4262.1759.6755.2551.1744.5038.5834.2527.8317.60
Variety_B15166.8367.2563.0062.6751.0847.2538.2531.6729.5018.90
Variety_A152          
Variety_A222          

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.

 

SAS Employee
Posts: 17

Re: Repeated Measure Analysis

Rpeated measures is suggested to use PROC MIXED procedure, see the example in the documentation-

http://support.sas.com/documentation/cdl/en/statug/68162/HTML/default/viewer.htm#statug_mixed_exampl...

 

 

Ask a Question
Discussion stats
  • 1 reply
  • 140 views
  • 0 likes
  • 2 in conversation