[R-sig-phylo] phylogenetically-informed Reduced Major Axis regression in R?

2011-04-20 Thread Arne Mooers
Dear members: Does anyone know of scripts to both estimate and test phylogenetically-corrected RMA regression slopes (perhaps using the relevant equations from Ives et al. (Syst. Biol. 2007))? Cheers, Arne Mooers __ Dr. Arne Mooers Biological Sciences, Simon

Re: [R-sig-phylo] phylogenetically-informed Reduced Major Axis regression in R?

2011-04-20 Thread Liam J. Revell
Hi Arne, Just calculating the slope is straightforward. For tree and column vectors x y (in order tree$tip.label): C-vcv.phylo(tree) ax-sum(solve(C,x))/sum(solve(C)) ay-sum(solve(C,y))/sum(solve(C)) beta1-sqrt(t(y-ay)%*%solve(C,y-ay)/(t(x-ax)%*%solve(C,x-ax))) The model intercept can

[R-sig-phylo] Phylogenetic correlation

2011-04-20 Thread Scott Chamberlain
Dear R users, I am trying to compare correlation's among traits without phylogeny and with accounting for phylogenetic history (each data point is a species mean trait value). There is no clear predictor and no clear response variable between two traits. I thought that regression through

Re: [R-sig-phylo] phylogenetically-informed Reduced Major Axis regression in R?

2011-04-20 Thread Joe Felsenstein
Liam said: Just calculating the slope is straightforward. For tree and column vectors x y (in order tree$tip.label): The relevant point to keep in mind is that once you have made maximum likelihood estimates of the means, variances and covariances of the variables, the Reduced Major Axis

Re: [R-sig-phylo] Ives et al. 2007 Matlab code converted to R code?

2011-04-20 Thread Anthony R Ives
Scott, I would love it if somebody would. If I were doing it now, I'd simultaneously use an OU or maybe lambda transform. Several people have code that does, for example, regression while assuming residual variation has some non-Brownian phylogenetic structure (e.g., Lavins et al.

Re: [R-sig-phylo] phylogenetically-informed Reduced Major Axis regression in R?

2011-04-20 Thread Simon Blomberg
I think it is important to point out, that while RMA may superficially be an attractive method, it relies on the ratio of error variances being unity. This is almost always incorrect. It usually results in a massive over-correction of the slope bias with respect to the OLS estimator. That is,