Skip to content
Prev 8874 / 20628 Next

sparse Matrix from phylo object in MCMCglmm

Hi,

You will be best pruning the phylogeny for each data set.  You should  
get the same answer if you don't, but it may take longer (both time  
per iteration, and more iterations because of slower mixing). Just  
creating a covariance matrix for the tips is generally a bad idea  
unless the phylogeny is small. Retaining internal nodes allows a  
sparser inverse, and retains structure that algorithms for efficiently  
solving sparse linear systems can recognise and exploit.

The default is to scale the distance from root to tip to one unit. If  
the tree is non-ultrametric this is not possible, and you will get an  
error saying the tree cannot be scaled. You can leave it unscaled, or  
stretch the tree to be ultrametric and then scale.

Cheers,

Jarrod



Quoting Luis Verde <luisd at ciencias.unam.mx> on Fri, 7 Sep 2012 17:02:54 +1000: