hi Kyle @Laser_Taco_ ,
Just a few things that occurred to me over the weekend. In GLIMMIX, for ratios you should probably specify a distribution, and change the method to LAPLACE with tech=nrridg. So perhaps something like this:
Proc GLIMMIX data=Long_version method=laplace; nloptions maxiter=1000 tech=nrridg;
class Pen Trt diet Block Feed instance;
model y=Trt Feed instance Feed*instance/dist=beta ddfm=KR;
random instance/subject=pen*diet type=ar(1);
random feed/subject=pen type=chol;
random block;
lsmeans Feed/pdiff lines adjust=tukey;
run;
The first thing to do is to re-arrange the data into a long format, where there is one dependent value in each observation (here it is y). The other variables in each line would be pen, trt, diet (although this looks completely confounded with feed), block, feed and instance, which is indexed from 1 to 5. So instead of:
PEN
DIET
Treatment
Rep
Feed
pref1
pref2
pref3
pref4
pref5
1
1
3
1
800
68.7500
57.6471
67.8571
57.9545
78.9157
1
3
3
1
100
31.2500
42.3529
32.1429
42.0455
21.0843
You would have (for the first pen, and all other pens would follow this pattern:
PEN
DIET
Treatment
Rep
Feed
instance
y
1
1
3
1
800
1
0.6875
1
1
3
1
800
2
0.576471
1
1
3
1
800
3
0.678571
1
1
3
1
800
4
0.579545
1
1
3
1
800
5
0.789157
1
3
3
1
100
1
0.3125
1
3
3
1
100
2
0.423529
1
3
3
1
100
3
0.321429
1
3
3
1
100
4
0.420455
1
3
3
1
100
5
0.210843
And so on. Note that all of the y values have been rescaled to the (0, 1) interval. So now there are two levels of feed for each pen and five levels of instance for each pen by diet combination.
If I were better informed about how to use it, I might recommend PROC COPULA for the analysis, but that is only based on what the examples look like.
I thought I had a way to address this, but so long as each pref within a treatment is such that the values for the two diets within a treatment sum to 1, all of the above will have some major issues due to lack of independence. If the preference response was converted to a ratio or some other type of value, so that a single value is obtained per pen at each preference measurement (time), you should be able to improve the analysis.
SteveDenham
... View more