BookmarkSubscribeRSS Feed
aska_ujita
Obsidian | Level 7

Hello there.

 

I am struggling all the time that I try to analyse my data.

I am analyzing the milk production of two treatments (GROUP - treated and control).

I have 20 different cows in each group;

I have two parturition order (PO - multiparous and primiparous), seven days of lactation (DL - 1, 3, 5, 7, 15, 30, 45 and 60th day of lactation), month of the data collected (MONTH - if I collected the data in 8th May 2019, the my month will be 5), age (AGE - in moths).

 

I collected the milk production (MP) of each cow on days 1, 3, 5, 7, 15, 30, 45 and 60. So I have seven information for one cow.

 

My procedure is like this:

 

PROC MIXED;
CLASS group po dl cow;
MODEL MP= group dl po group*po group*dl month age/ solution;
repeated dl/subject = cow type=cs r rcorr;
lsmeans group/pdiff adjust=tukey;
lsmeans group*op/pdiff adjust=tukey;
RUN;

 

But, I am having problem when run it... 

 

Type 3 Tests of Fixed Effects
Effect - Num DF - Den DF - F Value - Pr > F
Group102.06.
dl3882.280.0851
PO1390.530.4697
Group*po101.94.
Group*dl3880.700.5528
month1883.450.0667
age1390.000.9714
 

 

why the "Pr>F" of group and group*po is a dot...??

 

Can anyone help me please.

 

Thank you.

 

Aska.

3 REPLIES 3
sld
Rhodochrosite | Level 12 sld
Rhodochrosite | Level 12

A common cause for DenDF=0 and consequently Pr>F = . is that the model is overspecified in some way. 

 

You have not provided enough detail about your experimental design to allow me to be any more specific. Some aspects are not clear:

1) DL takes values from 1 to 60, which span two months. You also have a MONTH factor. How are DL and MONTH related?

2) Multiparous cows are likely to be consistently older than primiparous cows; multiparous cows probably have a range of ages, but primiparous cows might not, and the ages of the two groups might not overlap. How are PO and AGE related? Presumably a cow is either primiparous or multiparous?

3) The Num DF for DL is 3, when you expect 6 (=7-1).  This could be a coding problem, or some overlapping redundancy with MONTH.

4) How are AGE (measured in months) and MONTH related? 

5) Is it reasonable to assume that milk production is a linear function of MONTH and AGE? 

 

I find it helpful to use the TABULATE procedure to look at the data set structure, for example

 

proc tabulate data=<yourdataset>;
class dl month po age;
table dl, month;
table age, po;
run;

If you would like to post more information (including an example dataset that has the same structure as your dataset), then someone in the Community might be able to provide more insight.

 

aska_ujita
Obsidian | Level 7

Hello sld, thank you for helping me.

 

Sorry, I confuser here, actually my DL is 15, 30, 45 and 60 day of lactation of the cow, so the DF is correct.

My AGE is in months and the MONTH is the month of the collected data, because of the specific climate the month of the data collection can influence.

My PO is just two categories: multiparous and primiparous. And is true, the range between the primiparous is less than between multiparous.

 

I thought to make it a factorial.

 

PROC MIXED;
CLASS TREATMENT PO DL;
MODEL MP = TREATMENT|PO|DL;
repeated DL/ subject=COW(TREATMENT*PO) type=FA(1); /*(in this case, FA(1) was the best structure)*/

RUN;

 

Do you think is not possible to put month and age in the model??

 

Thank you.

 

Best.

sld
Rhodochrosite | Level 12 sld
Rhodochrosite | Level 12

You usually will want to have COW in the CLASS statement.

 

Is it possible to put MONTH and AGE in the model? I don't know. What happens when you do? (And is it reasonable to assume a linear relationship between MP and MONTH or AGE?)

 

If you get errors, or 0 Den DF, or missing p-values, or some other pathological output, then there is some conflict between MONTH and/or AGE and/or TREATMENT|PO|DL. Without knowing more about the structure of your dataset, I cannot say what the problem might be.

 

Ready to join fellow brilliant minds for the SAS Hackathon?

Build your skills. Make connections. Enjoy creative freedom. Maybe change the world. Registration is now open through August 30th. Visit the SAS Hackathon homepage.

Register today!
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
  • 768 views
  • 0 likes
  • 2 in conversation