__
R-sig-phylo mailing list
R-sig-phylo@r-project.org
https://stat.ethz.ch/mailman/listinfo/r-sig-phylo
--
Simon Blomberg, BSc (Hons), PhD, MAppStat.
Lecturer and Consultant Statistician
School of Biological Sciences
The University of Queensland
St. Lucia Queensland 4072
Austra
I used to do this before ape existed.
Here is some example code.
library(ape)
data(bird.orders)
# some made up data
dat <- data.frame(y=rnorm(23), x=rnorm(23))
rownames(dat) <- bird.orders$tip.label
mat <- vcv(bird.orders, cor=TRUE)
fit <- gls(y~x, correlation=corSymm(mat[lower.tri(mat)], fixed
origin, i.e., for lambda=0 the log-like value is higher than for
lambda>0, and for lambda>0 the log-like is only increasing with lambda.
Thus a third question: why are these two profile log-likelihood curves
different?
The final question is: in which technique can we believe?
I’m
bda>0, and for lambda>0 the log-like is only increasing with lambda.
Thus a third question: why are these two profile log-likelihood curves
different?
The final question is: in which technique can we believe?
I’m using the version 2.14.1 of R, 3.1-96 of nlme, and 3.0-1 of ape.
Best,
Rudolf
-
try
diag(vcv.phylo(your.tree))
Cheers,
Simon.
On 03/09/12 19:17, boyang zhe wrote:
Hi, everyone
I am new to ape and R programming. I have an unrooted tree. I use
root() function to reroot the tree by one outgroup. and then I try to
extract root to tip distance. the tree$edge.length only stor
://stat.ethz.ch/mailman/listinfo/r-sig-phylo
Searchable archive at http://www.mail-archive.com/r-sig-phylo@r-project.org/
--
Simon Blomberg, BSc (Hons), PhD, MAppStat, AStat.
Lecturer and Consultant Statistician
School of Biological Sciences
The University of Queensland
St. Lucia Queensland 4072
r ===
[[alternative HTML version deleted]]
___
R-sig-phylo mailing list - R-sig-phylo@r-project.org
https://stat.ethz.ch/mailman/listinfo/r-sig-phylo
Searchable archive at http://www.mail-archive.com/r-sig-phylo@r-project.org/
--
Simon Blomberg, BSc (Hons), PhD,
> simple funciton to do that?
> For any help I am very grateful.
> Best,
> Sereina
--
Simon Blomberg, BSc (Hons), PhD, MAppStat, AStat.
Senior Lecturer and Consultant Statistician
School of Biological Sciences
The University of Queensland
St. Lucia Queensland 4072
Australia
T: +61 7
ersion deleted]]
>
> ___
> R-sig-phylo mailing list -R-sig-phylo@r-project.org
> https://stat.ethz.ch/mailman/listinfo/r-sig-phylo
> Searchable archive athttp://www.mail-archive.com/r-sig-phylo@r-project.org/
--
Simon Blomberg, BSc (Hons),
Am I missing something? The OP only has 8 species in the data set. I wouldn't
put much store in fancy PCM modelling based on such a small data set. And 3
individuals per species is not enough for a good estimate of the within-species
variance.
Simon.
Simon Blomberg, BSc (Hons), PhD, MAp
Hi Ben,
Yes, you would have to assume constant variance across species to use N=24. I
think that is the only option. But given that biological data often has a
positive mean-variance relationship, again I'm dubious about the exercise.
YMMV, however!
Cheers,
Simon.
Simon Blomberg, BSc
h floor, E end of bldg)
UW-Madison
Madison, WI 53706
608-262-1519
On Mar 1, 2015, at 10:53 PM, Simon Blomberg
wrote:
Hi Ben,
Yes, you would have to assume constant variance across species to use
N=24. I think that is the only option. But given that biological data
often has a positive mean-vari
e
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.
--
Simon Blomberg, BSc (Hons), PhD, MAppStat, AStat.
Senior Lecturer and Consultant Statistician
School
mailman/listinfo/r-sig-phylo
Searchable archive at
http://www.mail-archive.com/r-sig-phylo@r-project.org/
--
Simon Blomberg, BSc (Hons), PhD, MAppStat, AStat.
Senior Lecturer and Consultant Statistician
School of Biological Sciences
The University of Queensland
St. Lucia Queensland 4072
Australia
very much in advance,
Alexandre
--
Simon Blomberg, BSc (Hons), PhD, MAppStat, AStat.
Senior Lecturer and Consultant Statistician
School of Biological Sciences
The University of Queensland
St. Lucia Queensland 4072
Australia
T: +61 7 3365 2506
email: S.Blomberg1_at_uq.edu.au
map| for painted trees.
>
> PhD @ Biomathematics Research Centre
> Room 523 - Erskine Building
> University of Canterbury
> Christchurch - New Zealand
>
> phone: +64 3 364 2987 ext 4869
>
>
> ___
> R-sig-phylo mailing list -
il-archive.com/r-sig-phylo@r-project.org/
--
Simon Blomberg, BSc (Hons), PhD, MAppStat, AStat.
Senior Lecturer and Consultant Statistician
School of Biological Sciences
The University of Queensland
St. Lucia Queensland 4072
Australia
T: +61 7 3365 2506
email: S.Blomberg1_at_uq.edu.au
http://www.evolutio
-phylo@r-project.org/
[[alternative HTML version deleted]]
___
R-sig-phylo mailing list - R-sig-phylo@r-project.org
https://stat.ethz.ch/mailman/listinfo/r-sig-phylo
Searchable archive at http://www.mail-archive.com/r-sig-phylo@r-project.org/
-
i_1.1.5compiler_3.4.0 scales_0.4.1
I am not getting the error on two other machines with the same OS and
(as far as I can tell) the same setup. Any help would be greatly
appreciated!
Cheers,
Simon.
--
Simon Blomberg, BSc (Hons), PhD, MAppStat, AStat.
Senior Lecturer and Consultant Statis
False alarm. I cleared my workspace and re-started R and the problem has
gone away. I'm curious to know how it occurred but I'm happy that it has
been resolved. We now return you to your scheduled R programming...
Cheers,
Simon.
On 27/04/17 12:44, Simon Blomberg wrote:
Hi Em
gt; R-sig-ecology mailing list
> [EMAIL PROTECTED]
> https://stat.ethz.ch/mailman/listinfo/r-sig-ecology
--
Simon Blomberg, BSc (Hons), PhD, MAppStat.
Lecturer and Consultant Statistician
Faculty of Biological and Chemical Sciences
The University of Queensland
St. Lucia Qu
ax: +44 (0)191 3346101
>
> http://www.dur.ac.uk/isabella.capellini/
> http://www.dur.ac.uk/anthropology/staff/profiles/?id=2366
>
> http://www.bu.edu/phylogeny/index.html
>
> ___
> R-sig-phylo mailing list
> R-sig-phylo@r-projec
On Mon, 2008-06-02 at 15:34 +0200, Emmanuel Paradis wrote:
[snip]
> R> model.matrix(~ x)[, -1]
>x2 x3 x4
> 1 0 0 0
> 2 0 0 0
> 3 1 0 0
> 4 1 0 0
> 5 0 1 0
> 6 0 1 0
> 7 0 0 1
> 8 0 0 1
Or even just model.matrix(~ x-1)
Simon.
--
x3 x4
1.2609972 -1.4974379 0.1920696 0.8274839
> coef(fit3)
x2 x3 x4
-1.4974379 0.1920696 0.8274839
Cheers,
Simon.
On Tue, 2008-06-03 at 05:51 +0200, Emmanuel Paradis wrote:
> Le 03.06.2008 03:16, Simon Blomberg a écrit :
> > On Mon, 2008-06
t
Yesterday was obviously not a good thinking day for my brain.
Cheers,
Simon.
On Tue, 2008-06-03 at 16:01 +1000, Simon Blomberg wrote:
> You're right. I was not thinking. If you are going to use independent
> contrasts, you want ~ x -1, though, due to the necessity to fit the
> m
.se
>
> Tel: ++46-18-471-2930
>
> Web page: http://www.iee.uu.se/zooekol/default.php?type=personalpage
> <http://www.iee.uu.se/zooekol/default.php?type=personalpage&id=146〈=en>
> &id=146&lang=en
>
>
>
>
> [[alternative HTML version de
but may have forgotten) that the paper only
> covers cases where a transformation will linearize/normalize/
> standardize the variance of the data appropriately.
>
>Try compar.gee in APE or phylog.gls.fit in PHYLOGR.
>
>Ben Bolker
>
>
>
forcing me to be more explicit on this.
Cheers,
Simon.
On Thu, 2008-06-12 at 09:46 +1000, Simon Blomberg wrote:
> That paper really annoyed me. Of course you can fit polynomial models,
> or splines etc. or even nonlinear regression models to independent
> contrasts. You do it the same
ank you!
> >
> > Best wishes,
> >
> > Alejandro
>
> _______
> R-sig-phylo mailing list
> R-sig-phylo@r-project.org
> https://stat.ethz.ch/mailman/listinfo/r-sig-phylo
--
Simon Blomberg, BSc (Hons), PhD, MAppStat.
mes<-c("G","H","I","J","K")
newlist <- lapply(phylist,
function(z) {
z$tip.label <- c("G","H","I","J","K")
class(z) <- "phylo"
z
})
class(newlist) &
uot;)
> +z
> +})
> > write.tree(newlist,file="newlist")
> Error in write.tree(newlist, file = "newlist") :
> object "phy" is not of class "phylo"
>
> (and yes, write.tree did work on the multiphylo object before I d
864365 0.01356346
# phylogenetic effect is 99% of the residual variance.
Simon.
--
Simon Blomberg, BSc (Hons), PhD, MAppStat.
Lecturer and Consultant Statistician
Faculty of Biological and Chemical Sciences
The University of Queensland
St. Lucia Queensland 4072
Australia
Room 320 Goddard Build
945
Random effects: ~1 | species
Variance list: mat2
species resid
Standard Dev: 0.8626083 0.10114964
% Variance: 0.9864365 0.01356346
# phylogenetic effect is 99% of the total variance.
Simon.
--
Simon Blomberg, BSc (Hons), PhD, MAppStat.
Lecturer and Consult
nexus gives us the following error:
> tr2 <- read.nexus("tree6.txt")
Error in trees[[i]] : subscript out of bounds
Has anyone else come across this problem?
Simon.
--
Simon Blomberg, BSc (Hons), PhD, MAppStat.
Lecturer and Consultant Statistician
School of Biological Sciences
Th
> Reading NEXUS file aborted at tree no.1
> >
> >
> > I can fix that error by removing the extra pair of parentheses in your
> > tree, e.g.
> >
> > tree Bioperl_1 = [&R] (c,(a, b)[]);
> >
> > which read.nexus() reads successfully for me.
> >
-- Brian Sidlauskas
>
> * These are allometric slopes, and so we're interested in testing for
> deviations from slope = 1. Ordinary least-squares regression tends to
> underestimate the slopes pretty drastically.
>
>
--
Simon Blomberg, BSc (Hons), PhD, MAppStat.
Lecturer a
pecies, would be to make an
> N-way polytomy at each tip - but this would be prohibitively slow when
> sample sizes per species get larger, and it seems like there should be
> a faster way. Is there an better way to incorporate multiple observations
> per tip into a phylogenetic analysis?
>
&
[1,] 0.1138656
>
> What is wrong (singular) with this tree that Initialize.corSymm (or the
> associated gls call) doe snot handle ???!!!
>
> Any help or insight appreciated
> Cheers
> SebL
>
>
> ___
> R-sig-phylo mailing
gt;
> Cheers,
> Eli Swanson
>
> ___
> R-sig-phylo mailing list
> R-sig-phylo@r-project.org
> https://stat.ethz.ch/mailman/listinfo/r-sig-phylo
--
Simon Blomberg, BSc (Hons), PhD, MAppStat.
Lecturer and Consultant Statistician
School of
A good general reference for r^2 is:
@ARTICLE{generalized.r^-1,
author = {Nagelkerke, N. J. D.},
title = {A Note on a General Definition of the Coefficient of Determination},
journal = {Biometrika},
year = {1991},
volume = {78},
pages = {691-692},
number = {3}
}
Simon.
Simon
No you do not have to use dummy variable coding if using gls or lme from
the nlme packages. These functions use standard R methods to construct
the design matrix themselves. So dummy coding IS used, but it is all
behind the scenes. You can change the type of coding using the contrasts
argument to t
d at the following URL:
http://dx.doi.org/10./j.2041-210X.2010.00044.x or on my website (URL
below).
I hope this is of some help.
- Liam
Liam J. Revell
NESCent, Duke University
web: http://anolis.oeb.harvard.edu/~liam/
NEW email: lrev...@nescent.org
___
iling list
R-sig-phylo@r-project.org
https://stat.ethz.ch/mailman/listinfo/r-sig-phylo
___
R-sig-phylo mailing list
R-sig-phylo@r-project.org
https://stat.ethz.ch/mailman/listinfo/r-sig-phylo
--
Simon Blomberg, BSc (Hons), PhD, MAppStat, AStat
Lecturer and Consultant Statisticia
t.org
https://stat.ethz.ch/mailman/listinfo/r-sig-phylo
--
Simon Blomberg, BSc (Hons), PhD, MAppStat, AStat
Lecturer and Consultant Statistician
School of Biological Sciences
The University of Queensland
St. Lucia Queensland 4072
Australia
T: +61 7 3365 2506
email: S.Blomberg1_at_uq.edu.au
z.ch/mailman/listinfo/r-sig-phylo
Luke Harmon
Assistant Professor
Biological Sciences
University of Idaho
208-885-0346
lu...@uidaho.edu
___
R-sig-phylo mailing list
R-sig-phylo@r-project.org
https://stat.ethz.ch/mailman/listinfo/r-sig-phylo
--
Si
Joe Felsenstein, j...@gs.washington.edu
Dept. of Genome Sciences, Univ. of Washington
Box 355065, Seattle, WA 98195-5065 USA
___
R-sig-phylo mailing list
R-sig-phylo@r-project.org
https://stat.ethz.ch/mailman/listinfo/r-sig-phylo
--
Simon Bl
46 matches
Mail list logo