BookmarkSubscribeRSS Feed
Tree
Calcite | Level 5

I am working on sas code to test for treatment effects on soil pH through time.

I have 4 plots (reps), two of which are fertilized, and two that are not fertilized (Treat)

1/2 of each plot was plowed (plow)

I measured soil pH at four uneven time intervals (DOY), so end up with 32 data points.

Here is the code I developed - am I missing something?  Thanks!

proc mixed data=soil; class treat plow reps doy;

model pH = treat|plow|doy / Lcomponents;

repeated doy / sub=treat type=cs;

run;

3 REPLIES 3
plf515
Lapis Lazuli | Level 10

Looks OK to me

SteveDenham
Jade | Level 19

I agree with Peter, the code formulation is perfect.  I would hesitate on specifying a compound symmetry error structure, as it assumes equal correlations between days, no matter how far separated in time, and equal covariances at each time point.  However, because of the small N for timepoints, and unequal spacing in time, this may be the only candidate that will be able to be fit.

Steve Denham

Tree
Calcite | Level 5

Thanks!

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
  • 3 replies
  • 1264 views
  • 6 likes
  • 3 in conversation