--
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 on the web, visit https://groups.google.com/d/msgid/geomorph-r-package/5a9c7780-c6a0-48bc-bcf2-9fc1bd45c188n%40googlegroups.com.
To view this discussion on the web, visit https://groups.google.com/d/msgid/geomorph-r-package/1badb777-8d77-464b-974d-ec69d759f82dn%40googlegroups.com.
To view this discussion on the web, visit https://groups.google.com/d/msgid/geomorph-r-package/78436e56-96c2-4eb3-8005-43ecbeb655cen%40googlegroups.com.
To view this discussion on the web, visit https://groups.google.com/d/msgid/geomorph-r-package/48AB1B41-BE48-427F-8A15-695715E92F6B%40gmail.com.
To view this discussion on the web, visit https://groups.google.com/d/msgid/geomorph-r-package/CA%2BxQ-HQVEuMiyz5_mQM_WhrSerxEnYOrPuYXZOgf%2BbB20YexQw%40mail.gmail.com.
To view this discussion on the web, visit https://groups.google.com/d/msgid/geomorph-r-package/2100BF2B-EE0E-435B-84C3-45C8637C3E64%40gmail.com.
To view this discussion on the web, visit https://groups.google.com/d/msgid/geomorph-r-package/7e3e0c4e-c042-4f97-90f5-bb7730983928n%40googlegroups.com.
To view this discussion on the web, visit https://groups.google.com/d/msgid/geomorph-r-package/e6e760e9-3d8d-4784-83a6-d38812f8d594n%40googlegroups.com.
1) This function puts out only LD1-LD3 data, although there should be 11 CVs to report for 12 groups - not just 3. I would like to have complete data for all 11 CVs. Does anyone know how to access this data?
2) The raw CV values generated by shapes.cva do not match the output of CVAgen at all - theoretically at least the raw CV values should match, unless the algorithm is completely different, right?
To view this discussion on the web, visit https://groups.google.com/d/msgid/geomorph-r-package/e6e760e9-3d8d-4784-83a6-d38812f8d594n%40googlegroups.com.
To view this discussion on the web, visit https://groups.google.com/d/msgid/geomorph-r-package/3F5034ED-6241-477B-B5AF-EB00820A8EBD%40gmail.com.
To view this discussion on the web, visit https://groups.google.com/d/msgid/geomorph-r-package/ceac2afa-67af-44ed-839d-2d0f7197ddf7n%40googlegroups.com.
To view this discussion on the web, visit https://groups.google.com/d/msgid/geomorph-r-package/97134543-095a-4373-9ff5-bf2042498cd5n%40googlegroups.com.
To view this discussion on the web, visit https://groups.google.com/d/msgid/geomorph-r-package/1b4a4eef-0550-4f15-ad7a-93c208f0fe9en%40googlegroups.com.
To view this discussion on the web, visit https://groups.google.com/d/msgid/geomorph-r-package/1b4a4eef-0550-4f15-ad7a-93c208f0fe9en%40googlegroups.com.
To view this discussion on the web, visit https://groups.google.com/d/msgid/geomorph-r-package/7e74c77a-a98c-4d5f-991b-9742cf3e2233n%40googlegroups.com.
To view this discussion on the web, visit https://groups.google.com/d/msgid/geomorph-r-package/28C73394-5924-4329-98B4-FD138DDDBEDC%40gmail.com.
I will reiterate Mike’s point. Do not use CV scores as data in further downstream analyses. Inferences based on these are using data that are statistically manipulated via the CVA model (one could say distorted). They do not represent the actual patterns in the data, but are predictions from the CVA model.
Yes I (and Mike) recognize that using CV scores in subsequent analyses is unfortunately quite common in many biological fields. That does not make it an appropriate practice. It simply is not.
Dean
Dr. Dean C. Adams
Director of Graduate Education, EEB Program
Professor
Department of Ecology, Evolution, and Organismal Biology
Iowa State University
https://www.eeob.iastate.edu/faculty/adams/
phone: 515-294-3834
To view this discussion on the web, visit https://groups.google.com/d/msgid/geomorph-r-package/2BC516BB-300F-43A4-A87D-3BA4EB34CE06%40gmail.com.
To view this discussion on the web, visit https://groups.google.com/d/msgid/geomorph-r-package/62576378-155c-43d0-b897-28ef604da553n%40googlegroups.com.
You received this message because you are subscribed to a topic in the Google Groups "geomorph R package" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/geomorph-r-package/SRs0P_zSL18/unsubscribe.
To unsubscribe from this group and all its topics, send an email to geomorph-r-pack...@googlegroups.com.
To view this discussion on the web, visit https://groups.google.com/d/msgid/geomorph-r-package/8999436F-4551-4A78-B43A-AF1FBF78C5AB%40gmail.com.
David et al.,
Using DF scores in this fashion is a long climb for a short slide (the older among us may appreciate that quote!).
There is nothing to be gained by using the mean DF scores for each group to generate TPS deformation grids, versus using the mean shapes to generate those TPS grids. They will be virtually indistinguishable. An example of this is shown using the code below.
Of course, the problem with the DFA plotting approach is the fact that one must incorporate several additional mathematical gyrations and R-coding steps; meaning there are more places where one can go astray. For instance, DFA will not work on the GPA-aligned coordinates, as they contain redundant dimensions (which results in a singular covariance matrix). Thus one must first perform PCA and remove the redundant dimensions. Then one performs the DFA, then makes predictions, then finds the means, etc. More steps, which leads to the danger of messing things up.
I reiterate (again) that I would avoid CVA/DFA. I avoid it for generating shape deformation (TPS) plots, for statistical plots, and especially for all downstream statistical analyses. For the first they are redundant with standard mean-based shape TPS grids, for #2 and #3 they are misleading at best; flat-out wrong at worst.
Dean
##
library(geomorph)
library(MASS)
data("plethodon")
Y.gpa <- gpagen(plethodon$land)
mean <- mshape(Y.gpa$coords)
## Overall means
fit <- procD.lm(Y.gpa$coords~plethodon$species)
Y.hat <- fit$fitted
gp.mns <- arrayspecs(Y.hat[c(1,11),],p=12,k=2) #brute-force b/c I know this dataset
## Means from DFA
##NOTE: first must remove redundant dimensions, or LDA is working with singular matrices
shape.pc <- prcomp(two.d.array(Y.gpa$coords))$x[,1:20] #remove GPA redundancies
lda.fit <- lda(shape.pc,plethodon$species)
lda.scores <- predict(lda.fit)$x
pred.shape <- shape.predictor(Y.gpa$coords, x = lda.scores,
pred1 = tapply(lda.scores,plethodon$species, mean)[1],
pred2 = tapply(lda.scores,plethodon$species, mean)[2] )
# Now plot!
par(mfrow = c(2,2))
plotRefToTarget(mean,gp.mns[,,1], mag = 2,links = plethodon$links)
mtext("mean1")
plotRefToTarget(mean,gp.mns[,,2], mag = 2,links = plethodon$links)
mtext("mean2")
plotRefToTarget(mean,pred.shape$pred1, mag = 2,links = plethodon$links)
mtext("DFmean1")
plotRefToTarget(mean,pred.shape$pred2, mag = 2,links = plethodon$links)
mtext("DFmean2")
par(mfrow = c(1,1))
Dr. Dean C. Adams
Director of Graduate Education, EEB Program
Professor
Department of Ecology, Evolution, and Organismal Biology
Iowa State University
https://www.eeob.iastate.edu/faculty/adams/
phone: 515-294-3834
To view this discussion on the web, visit https://groups.google.com/d/msgid/geomorph-r-package/CAFJ%3DPKPH2dQ6iUt7TM3wxdHhzJZdd%3D1L7i_UR6mUwqogTwr9mQ%40mail.gmail.com.
To view this discussion on the web, visit https://groups.google.com/d/msgid/geomorph-r-package/d22e9456-7919-4620-9642-6ac817dc46f8n%40googlegroups.com.