Re: [R-sig-phylo] fitContinuous-Early Burst Model

2012-11-04 Thread Slater, Graham
I think it's convenient to think about how fitContinuous actually works here, or at least to think about the impact of the EB parameter on a transformed tree's branch lengths. Using simulations, try this: require(TreeSim); require(geiger); phy - sim.bd.taxa(50, 1, 0.1, 0.05, 1)[[1]][[1]]; ##

Re: [R-sig-phylo] fitContinuous-Early Burst Model

2012-11-05 Thread Slater, Graham
From: Nicolas Campione [nicolas.campi...@mail.utoronto.ca] Sent: Monday, November 05, 2012 2:04 AM To: Slater, Graham Cc: David Bapst; Frank Burbrink; r-sig-phylo@r-project.org Subject: Re: [R-sig-phylo] fitContinuous-Early Burst Model Hello All, Great

Re: [R-sig-phylo] Flat likelihood and linear transformation of traits in fitContinuous

2012-11-20 Thread Slater, Graham
Hi all, I think there might be 2 issues to consider here. The first concerns data transformations and how we consider traits to evolve over phylogenies. Many people would consider it most appropriate to use log transformed values of a continuous trait for model fitting purposes; for example,

Re: [R-sig-phylo] Estimating ancestral states of a trait under selection

2013-04-19 Thread Slater, Graham
Hi Eliot and others, You can also use the code contained in the fitContinuousMCMC package available here - https://www.eeb.ucla.edu/gradstudents/slater/Graham/code.html And described in this paper - http://onlinelibrary.wiley.com/doi/10./j.1558-5646.2012.01723.x/abstrac t To place

[R-sig-phylo] Methods in Ecology Evolution Special Issue: fossils and phylogenies

2013-08-10 Thread Slater, Graham
Dear list, I'm writing to promote this month's issue of Methods in Ecology and Evolution, which is now online and contains a special feature edited by Luke Harmon and I, titled Unifying fossils and phylogenies for comparative analyses of diversification and trait evolution. The feature

Re: [R-sig-phylo] p-values and fitContinous from geiger

2013-10-11 Thread Slater, Graham
Hi Andrew, Simone, et al., It's probably worth adding the very minor distinction that the results of Andrew's suggested test and of phytools' phylosig test have slightly different interpretations. Assuming lambda 1, a significant LRT when comparing the fit of a lambda model to a non-lambda, BM

Re: [R-sig-phylo] comparing taxa in data and tree

2013-10-22 Thread Slater, Graham
Hi Jorge, I find that this happens most often when I forget to set the row names of data. Try rownames(data) and if they're not the tip labels, then that's your problem. Graham --- -- Graham Slater Peter Buck

Re: [R-sig-phylo] Rate heterogeneity test with geiger

2013-11-20 Thread Slater, Graham
Hi Mercedes, The relaxed bm output summarizes the shifts sampled during the rj-mcmc, so it’s not surprising that it will show some shifts in rate along some branches. The important part of the output is the posterior probability of a shift at a given node — if this is low, then there is little

Re: [R-sig-phylo] fitContinuous code and output in Geiger

2013-11-21 Thread Slater, Graham
Hi Louise, There is a k for all at the bottom of the output for each model fit of all traits so I didn't think that it was probably the kappa needed for Kappa You’re right - K here is the number of parameters in the model. BM has K= 2 (root state and rate) and other models add an additional

Re: [R-sig-phylo] dropping taxa from list of trees

2014-02-25 Thread Slater, Graham
Hi Juanita try: lapply(simtrees, drop.random, n = 937) when using lapply (or any of the apply family) you need to specify additional arguments taken by the function you’re applying by name, along with their values. graham Graham

Re: [R-sig-phylo] Early burst branch rescale

2014-06-02 Thread Slater, Graham
Hi Jon, So there are are a few ways I can imagine doing this. One thing you should probably not do though is rescale the branches of the tree directly, at least in the case of OU, as this leads to incorrect covariances for pairs of taxa where one or either does not survive to the present day

Re: [R-sig-phylo] null model to trait evolution

2014-08-07 Thread Slater, Graham
Hi Viviane, If you believe that your traits are correlated - that is there is a variance-covariance matrix that describes the evolutionary correlations among these traits, then I don’t think you don't want to fit the models to each trait and transform the tree each time you simulate. You’d be

Re: [R-sig-phylo] MrBayes Trees are Misread by read.annotated.nexus() in OutbreakTools

2014-10-03 Thread Slater, Graham
Dave, I�ve had the same trouble with shuffling. However, all of this can be avoided if you specify the simple format for your .con file in the mrBayes block. sumt conformat = simple; The resulting tree will correctly display posterior probabilities in a phyloformat tree. Graham

Re: [R-sig-phylo] Obtaining time-scaled trees from MrBayes posterior tree block

2014-10-27 Thread Slater, Graham
Hi Roger, Branch lengths of trees in the t files are in expected changes per site. To get these into time units, you just need to divide the branch lengths by the corresponding clock rate in the p.file. Cheers, Graham Graham Slater

Re: [R-sig-phylo] Constraining node values in an OUCH analysis

2015-06-04 Thread Slater, Graham
Hi Daniel, There’s a difference between a method being able to handle fossil data, that is a dataset consisting of a non-ultrametric tree an data for all tips including non contemporaneous ones, and a method allowing you to directly specify trait values at nodes. Most trait evolution methods

Re: [R-sig-phylo] Constraining node values in an OUCH analysis

2015-06-04 Thread Slater, Graham
Oops - sorry Daniel, yes that should have been addressed to Nathan... Graham Slater Peter Buck Post-Doctoral Fellow Department of Paleobiology National Museum of Natural History The Smithsonian Institution [NHB, MRC 121] P.O. Box 37012

Re: [R-sig-phylo] fitContinuous drift model?

2015-05-28 Thread Slater, Graham
Hi Milton, The drift model gives a time-dependent change in the expected, or mean value of the trait. If we denote the drift parameter as M, then the expected value of the trait, E(x), at time t is a+Mt where a is the root state of the trait. So if M is positive, your trait tends to get larger

Re: [R-sig-phylo] clade-specific release and radiate model?

2015-05-31 Thread Slater, Graham
Hi Dan et al, Sorry I won�t be of much help analytically - my functions were written specifically for the time slice problem. It wouldn�t be too difficult to write a function to fit the model you describe, but it seems as though Julien has this all covered in mvMorph already, so that does seem

Re: [R-sig-phylo] Different estimate of Bloomberg's k in ape and caper in R

2015-07-14 Thread Slater, Graham
Hi Solomon, It’s because neither of the things you are estimating are Blomberg’s K and both are different from one another. In Caper, you are estimating Pagel’s Kappa (a branch length transformation that attempts to explain evolutionary change as punctuational [1] vs gradual [=1] ), while in