Now, it may be that multiple groups differ from one another, not just one. To determine this, use advanced.procD.lm and perform the slope comparison test (see help file for an explicit example).
Dean
Dr. Dean C. Adams
Professor
Department of Ecology, Evolution, and Organismal Biology
Department of Statistics
Iowa State University
www.public.iastate.edu/~dcadams/
phone: 515-294-3834
--
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/fae10d9d-c196-49ae-998c-1a9567a70a0a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
gdfTaxusA <- geomorph.data.frame(Shape = Y.gpa2$coords, logcs = log(Y.gpa2$Csize), Population = classifier$Population, Sex = classifier$Sex)
myresults5 <- advanced.procD.lm(Shape ~ logcs + Population * Sex,
~ logcs + Population + Sex,
groups = ~ Population*Sex, slope = ~logcs, iter = 1000, data = gdfTaxusA)
OR:
myresults6 <- advanced.procD.lm(Shape ~ logcs + Population * Sex,
~ logcs + Population * Sex,
groups = ~ Population*Sex, slope = ~logcs, iter = 1000, data = gdfTaxusA)
And second, should the reports for amount of shape change (contrast in slope vector length) and direction of shape change (correlations between slope vectors) be consistent with plot of PC1 of predicted values (from regression shape on size) vs log centroid size (Homogeneity of slopes_PredLine)?
Thank you,
Milena
Neither of these models compares slopes among groups. What you need is a model with individual slopes to a model with a common slope. For ‘size’ and ‘group’ that is:
Y~size*group
Y~size+group
Note that the first model is fully written as: Y~size+group+size:group. The size:group term contains the individual slopes.
For your system it seems you should have:
Shape ~ logcs * Population * Sex
Shape ~ logcs + Population * Sex
Note the ‘*’ and ‘+’ with respect to size and the groups. This determines whether the individual slope terms are present or not.
Dean
Dr. Dean C. Adams
Professor
Department of Ecology, Evolution, and Organismal Biology
Department of Statistics
Iowa State University
www.public.iastate.edu/~dcadams/
phone: 515-294-3834
From: geomorph-...@googlegroups.com [mailto:geomorph-...@googlegroups.com] On Behalf Of Milena Stefanovic
Sent: Thursday, November 3, 2016 8:02 AM
To: geomorph R package <geomorph-...@googlegroups.com>
--
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/622805c1-5493-4f33-ad33-4db51dba0a30%40googlegroups.com.