BookmarkSubscribeRSS Feed
User29
Calcite | Level 5

Dear community,

 

I am using METHOD=TYPE3 in PROC MIXED to retain negative variance-component estimates following Littel, Stroup, Dixon. However, I obtained a negative F value. I am new here, could you please help me? I know the nobound option is an alternative, but I would like to work with type3 method.

4 REPLIES 4
jiltao
SAS Super FREQ

Do you get a negative variance estimate or a negative F statistic? A negative F value is not possible -- please send us the output for that.

If it is a negative variance estimate, that can happen. These negative estimates arise for a variety of reasons, such as the following:

  • The variability in your data might be large enough to produce a negative estimate, even though the true value of the variance component is positive.
  • Your data might contain outliers.
  • A different model for interpreting your data might be more appropriate. Under some statistical models for variance component analysis, negative estimates are an indication that observations in your data are negatively correlated.

Thanks,

Jill

 

User29
Calcite | Level 5

Code:

 

PROC MIXED data=mydata method=type3;
             class rep A B C;
             model y = A B A*B C C*A C*B C*A*B / ddfm=kr2;
             random rep rep*A rep*B rep*A*B;
RUN;
 

PROC MIXED yielded this error term for my rep: MS(rep*A) + MS(rep*B) - MS(rep*A*B).

 

Note the red minus.

 

jiltao
SAS Super FREQ

That is expected -- the error term for the REP effect turns out to be the sum of two MS's, subtract the MS of rep*A*B. Math works out that way.

User29
Calcite | Level 5

This happens with only one of my variables that ranges from 5 to 33 g.

CFC_SAS_Communities_400x225.jpg

Call for content now open!

It's your turn to help shape SAS Innovate 2027. Share your expertise and inspire the SAS community.

Submit your proposal →

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
  • 4 replies
  • 78 views
  • 0 likes
  • 2 in conversation