if (FALSE) {
data("DataApes")
DataApes$PCstage->PCstage
DataApes$Tstage->Tstage
DataApes$CentroidSize->CS
cc<- 2/parallel::detectCores()
RRphylo(tree=Tstage,y=PCstage,clus=cc)->RR
# Case 1. without accounting for the effect of a covariate
# Case 1.1 selecting shape variables that show significant relationship with age
# on phenotypic vectors
angle.matrix(RR,node=72,Y=PCstage,select.axes="yes",type="phenotypes",clus=cc)
# on rates vectors
angle.matrix(RR,node=72,Y=PCstage,select.axes="yes",type="rates",clus=cc)
# Case 1.2 using all shape variables
# on phenotypic vectors
angle.matrix(RR,node=72,Y=PCstage,select.axes="no",type="phenotypes",clus=cc)
# on rates vectors
angle.matrix(RR,node=72,Y=PCstage,select.axes="no",type="rates",clus=cc)
# Case 2. accounting for the effect of a covariate (on rates vectors only)
# Case 2.1 selecting shape variables that show significant relationship with age
angle.matrix(RR,node=72,Y=PCstage,select.axes="yes",type="rates", cova=CS,clus=cc)
# Case 2.2 using all shape variables
angle.matrix(RR,node=72,Y=PCstage,select.axes="no",type="rates",cova=CS,clus=cc)
}
Run the code above in your browser using DataLab