Re: [R-sig-phylo] If my trait X cannot be regressed by body size, how can I rescue residuals corrected by the phylogeny and SE?

2021-05-27 Thread Julien Clavel
Hello Gabriel, If I understand it correctly you're looking for an 'intercept only' model (e.g., gls(x~1,...)). The rationale for doing so would be to assess the 'phylogenetic signal' in your trait 'x'. It will be somehow similar to using functions such as, for instance, fitContinuous in

[R-sig-phylo] If my trait X cannot be regressed by body size, how can I rescue residuals corrected by the phylogeny and SE?

2021-05-27 Thread Gabriel Ferreira
Hello all, My questions follows this succinct introduction: I have a data frame composed of: species, trait X values (means) and SE of trait X for each species; AND the phylogeny with branch length of the species. I would like to know if it is possible to create residuals of the distribution of

Re: [R-sig-phylo] If my trait X cannot be regressed by body size, how can I rescue residuals corrected by the phylogeny and SE?

2021-05-27 Thread Joe Felsenstein
If wants residuals of values of a trait in each species, taking into account within-species variation and phylogeny, what does it mean if those residuals correlate with those of some other character, or with an environmental variable? Just asking which R machinery to use might wait until it is

Re: [R-sig-phylo] If my trait X cannot be regressed by body size, how can I rescue residuals corrected by the phylogeny and SE?

2021-05-27 Thread Joe Felsenstein
Gabriel Ferreira explained: > I will try to better explain my problem, and I really appreciate your time > to help me with this issue. > My study is a conventional ecomorph with linear and univariate > measurements > > So... Some of my traits are linear measures that can and must be >

Re: [R-sig-phylo] If my trait X cannot be regressed by body size, how can I rescue residuals corrected by the phylogeny and SE?

2021-05-27 Thread Gabriel Ferreira
Hello Sr, I will try to better explain my problem, and I really appreciate your time to help me with this issue. My study is a conventional ecomorph with linear and univariate measurements So... Some of my traits are linear measures that can and must be "corrected" by body size, such as tail

Re: [R-sig-phylo] If my trait X cannot be regressed by body size, how can I rescue residuals corrected by the phylogeny and SE?

2021-05-27 Thread Graham Slater
I might well be missing something but I think, Gabriel, that you do not need to compute any residuals to do what you want to do. In your tail length example, you perform a phylogenetic regression to get a size-standardized tail length - in this case, the residuals of your pgls model. That all