fixed and random factors in nested models

242 views
Skip to first unread message

Michele Fumi

unread,
May 9, 2017, 8:34:26 AM5/9/17
to geomorph R package

Hi all,


I already read the recent discussion on nested models in this blog. However, I still have some doubts mainly deriving from what I read in several texts where I noticed some discrepancies on how compute F-statistics. Using the function nested.update of Geomorph to correct my data having all fixed factors in one instance and all random factors (presentation and digitization error) in another, I noticed that pseudo F-statistics is always computed using the ratio MSA/MSB(A).

In “Geometric Morphometrics for Biologists (2nd Ed.)” and in some texts dealing with statistics, when main factor is fixed, F-ratio is often computed as MSA/MSResiduals, but as I have already stated, some discrepancies with other texts exist. I did some trials using the old free program permanova (Anderson, 2005) allowing one to specify whether a factor is fixed or random.

I used the plethodon dataset and I did four trials:

  1. considering both the factors, Species and Site, as fixed;

  2. considering both the factors, Species and Site, as random;

  3. considering Species as fixed and Site as random;

  4. considering Species as random and Site as fixed.

In permanova, when main factor (Species) is fixed, F-ratio is computed as MSA/MSResiduals. When main factor is random, F-ratio is MSA/MSB(A) as well as in the remaining two simulations.

How pseudo F-statistics should be computed in nested models for main factors when they are, respectively, fixed or random? And, how these models should be managed in geomorph?



Thanks in advance,

Michele

Mike Collyer

unread,
May 9, 2017, 12:48:12 PM5/9/17
to Michele Fumi, geomorph R package
Michele,

I do not understand what you might be experiencing with permanova.  I looked at the user guide and did not see documentation for how F values were calculated.  However, it seems it strange that mixed effects models are calculated as you suggest.  The nested.update function only applies to Y ~ A/B type mixed models where A is fixed (groups) and B is random, nested with A (subgroups).  I believe the rather generally accepted method of obtaining F ratios is MS(A)/MS(B|A); i.e., MS(groups)/MS(subgroups) for the fixed (groups) effect.  Also, MS(B)/MS(Residuals); i.e., MS(subgroups)/MS(within subgroups) for the random (subgroups) effect.

Here is a link that suggests this is true:

Here is another:

Here is another:

I also found this from Karl Broman's (University of Wisconsin) webpage, which I think shows nested ANOVA well via example:


If B is not a factor that is “random” - meaning that the levels of B within A are not unique to A, sampled presumably and randomly from a distribution of possible B levels - then MS(B|A) is substituted with MS(Residuals) to calculate the F value for fixed effect, A.  For the species/site example, the sites are not unique to species.  Therefore, a fixed effects model is generally used.  An example where this would not be the case and a mixed effects model would be used is if one had species and populations nested within species.  The populations are subgroups and species comprise only their populations (populations are not shared between species).  One should evaluate if variation among species is meaningful compared to variation among the subgroups they comprise, not the individuals within populations (residuals).  That is what nested.update attempts to do.

However, nested.update is pretty limited and more complex F values can be considered.  That is difficult to accommodate for all kinds of research designs, but with procD.lm, for example, one can use all random SS outcomes to generate random F distributions, according to their own design.  This requires a bit of programming skill though.  The nested.update function just uses the SS values to calculate random F values in a prescribed way.

Hope that helps,
Mike


--
You received this message because you are subscribed to the Google Groups "geomorph R package" group.
To unsubscribe from this group and stop receiving emails from it, send an email to geomorph-r-pack...@googlegroups.com.
To post to this group, send email to geomorph-...@googlegroups.com.
Visit this group at https://groups.google.com/group/geomorph-r-package.
To view this discussion on the web, visit https://groups.google.com/d/msgid/geomorph-r-package/33895e4d-232f-45de-a4d1-c6a4a23b4436%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages