MomX / Momocs

:dove: Morphometrics using R
http://momx.github.io/Momocs/
51 stars 18 forks source link

MANOVA_PW on LDA parameters #205

Closed lrocax closed 4 years ago

lrocax commented 5 years ago

MANOVA_PW/Multivariate analyses of variance work on the PCA object. Is it possible to run it on LDA object?

vbonhomme commented 5 years ago

Not sure it's allowed as LDA is roughly the same as a MANOVA. If you find a source legitimating its use, I'm okey to implement it.

That beign said, LDA and PCA objects are almost the same and the following trick works, yet I have not fully checked everything:

hearts %>% fgProcrustes() %>% efourier %>% LDA(~aut) -> xl
xl$x <- xl$mod.pred$x
xl$sdev <- xl$mod$svd
class(xl) <- "PCA"
MANOVA_PW(xl,~aut)

Le mar. 30 oct. 2018 à 14:22, Lluis Roca notifications@github.com a écrit :

MANOVA_PW/Multivariate analyses of variance work on the PCA object. Is it possible to run it on LDA object?

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/MomX/Momocs/issues/205, or mute the thread https://github.com/notifications/unsubscribe-auth/AEgoFigBjGwJ_Cwu8JDc5t-KbXEkL-Ojks5uqFKQgaJpZM4YB6h- .

-- vincentbonhomme.fr http://www.vincentbonhomme.fr