data(plethodon)
Y.gpa<-gpagen(plethodon$land) #GPA-alignment
y<-two.d.array(Y.gpa$coords)
### Procrustes ANOVA
procD.lm(y~plethodon$species,iter=99)
### Pairwise comparisons: ANOVA design with full randomization
pairwiseD.test(y~plethodon$species*plethodon$site,iter=9)
### Pairwise comparisons: ANOVA design with residual randomization
pairwiseD.test(y~plethodon$species*plethodon$site,iter=9,RRPP=TRUE)
### Pairwise comparisons: ANCOVA design with full randomization
pairwiseD.test(y~plethodon$species*plethodon$site,covariates = data.frame(CS = Y.gpa$Csize),
iter=9)
### Pairwise comparisons: ANCOVA design with residual randomization
pairwiseD.test(y~plethodon$species*plethodon$site,covariates = data.frame(CS = Y.gpa$Csize),
iter=9, RRPP = TRUE)
Run the code above in your browser using DataLab