My sampling design has a hierarchical structure that I need to account for in the analysis:
My primary research question is whether colour morphs differ in morphology, while accounting for the underlying genetic structure (cluster) and controlling for allometric effects of size.
If I interpreted it correctly, I need to control for the non-independence of individuals from the same locality (pseudoreplication), as I am not interested in locality as a factor per se. To do this, I have been using the block argument in procD.lm (or lm.rrpp), with the understanding that restricting permutations within localities should preserve the hierarchical structure of the data.
Specifically, my model is:
r
fit06.block <- procD.lm(shape ~ cs * cluster * colour,
iter = 9999,
RRPP = TRUE,
data = mydata,
block = locality,
SS.type = "II",
print.progress = TRUE)
My broadest question is: is this model doing what I think it is doing? That is, is it appropriately accounting for pseudoreplication by restricting residual permutations to occur only within localities?
My doubts arose when I consulted the literature and the package documentation on lm.rrpp.ws. I am aware that this function was designed for other kind of data and questions, but I assumed that lm.rrpp.ws with 'subjects = "locality"' would be conceptually similar to using 'block = locality' in 'lm.rrpp' (well, and SS Type II). However, when I compare the anova tables, I find that the results from lm.rrpp.ws are identical (in terms of Z and significance) to those from lm.rrpp without the block argument. This suggests that 'lm.rrpp.ws' is not applying the same permutation restriction that I expected, which makes me doubt whether I am interpreting the ‘block’ argument correctly.
I have read the relevant literature (Collyer et al., 2015; Collyer & Adams, 2018; Adams & Collyer, 2024) and the package documentation, but it is still not clear for me, probably because my understanding of the underlying statistics is quite limited. I would be very grateful for any clarification you can provide on the conceptual and practical implications of using this model design and structure.
Thank you very much for your time!
Lucía
--
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 view this discussion, visit https://groups.google.com/d/msgid/geomorph-r-package/CAHMMSUjhj2%3Ditdh1C6J%3DjpYY2YD-jDgxxWChzOvF3Q5hdA%2BZuw%40mail.gmail.com.