[R-sig-phylo] phy.manova from Geiger package gives an error of different variable length with variables of equal length

2012-09-25 Thread Agus Camacho
Hope not being abusing of this list. Possibly, I missed something. I tried both with matrix and dataframe and reached to the same problem: phy.manova(tree, c(table$option,table$difoption), table$morph, data.names=NULL, nsim=1000, test=Wilks)Warning: no tip labels, order assumed to be the

Re: [R-sig-phylo] phy.manova from Geiger package gives an error of different variable length with variables of equal length

2012-09-25 Thread Liam J. Revell
Hi Agus. I think the problem is that c() concatenates your data for the continuous dependent variables in your model into one long vector. Try instead: table-as.matrix(table) Y-cbind(table[,2],table[,3]) x-as.factor(table[,1]) phy.manova(tree,Y,x) Good luck. - Liam Liam J. Revell,