I have now created a table containing the variables datenum (26 in total)), treatment (1 to 6) count (the total amount of hens registred at the pophole per treatment), total (the total amount of hens per treatment). Also included are Percent (the respective proportions of the countdata), factor1 and factor2.
All of my data is similar to the values depicted in the table below so i have no cases in which the proportion (Percent) is either 0 or 1 for one treatment and the opposite for another, thus both binary values 1 or 0 occur for every treatment on every day measurements were taken, so neither is there complete or quasicomplete-seperation.
datenum |
treatment |
COUNT |
PERCENT |
total |
Factor1 |
Factor2 |
1 |
1 |
50 |
0.626880642 |
80 |
-0.504551372 |
-0.756606836 |
1 |
2 |
48 |
0.601805416 |
81 |
-0.504551372 |
-0.756606836 |
1 |
3 |
39 |
0.488966901 |
81 |
-0.504551372 |
-0.756606836 |
1 |
4 |
49 |
0.614343029 |
81 |
-0.504551372 |
-0.756606836 |
1 |
5 |
43 |
0.539117352 |
81 |
-0.504551372 |
-0.756606836 |
1 |
6 |
43 |
0.539117352 |
81 |
-0.504551372 |
-0.756606836 |
I have attempted to adjust the model you described previously and used it on the data as shown above:
proc glimmix data=hen method=laplace;
class datenum treatment;
model count/total = datenum|treatment factor1 |factor2 / link=logit dist=binomial solution;
random intercept/ subject=treatment;
random datenum/ subject=treatmenttype=ar(1);
Lsmeans treatment/pdiff;
run ;
Though the model converges I get no significance values (a model is made but df's are 0) and the sas log provides the following commentary:
proc
glimmix data=hen method=laplace;
1105 class datenum treatment;
1106 model count/total = datenum|treatment factor1|factor2 / link=logit dist=binomial solution;;
1107 random intercept/ subject=treatment;
1108 random datenum/ subject=treatment type=ar(1);
1109 Lsmeans treatment /pdiff;
1110 run ;
NOTE:
Writing HTML Body file: sashtml68.htm
NOTE:
Convergence criterion (ABSGCONV=0.00001) satisfied.
NOTE:
Estimated G matrix is not positive definite.
Have i interpreted the events/trials option in the right way?