Alejandro is correct. You can also do it with phylogenetically independent contrasts or computer simulations:
Garland Jr., T., P. H. Harvey, and A. R. Ives. 1992. Procedures for the analysis of comparative data using phylogenetically independent contrasts. Systematic Biology 41:18–32. Garland, T., Jr., A. W. Dickerman, C. M. Janis, and J. A. Jones. 1993. Phylogenetic analysis of covariance by computer simulation. Systematic Biology 42:265–292. Cheers, Ted Theodore Garland, Jr., Professor Department of Biology University of California, Riverside Riverside, CA 92521 Office Phone: (951) 827-3524 Facsimile: (951) 827-4286 (not confidential) Email: tgarl...@ucr.edu http://www.biology.ucr.edu/people/faculty/Garland.html http://scholar.google.com/citations?hl=en&user=iSSbrhwAAAAJ Director, UCR Institute for the Development of Educational Applications Editor in Chief, Physiological and Biochemical Zoology Fail Lab: Episode One http://testtube.com/faillab/zoochosis-episode-one-evolution http://www.youtube.com/watch?v=c0msBWyTzU0 ________________________________________ From: R-sig-phylo [r-sig-phylo-boun...@r-project.org] on behalf of Alejandro Gonzalez Voyer [alejandro.gonza...@iecologia.unam.mx] Sent: Friday, April 08, 2016 2:01 PM To: Sean McKenzie Cc: R-phylo Mailing-list Subject: Re: [R-sig-phylo] Testing for relationship between one categorical and one continuous variable in a phylogenetic framework. Hello Sean, If the continuous variable is the “response” and the “independent” variable the discrete one, you can use PGLS, this would be akin to an ANOVA and you can do it accounting for phylogenetic non-independence. Is this what you were after? Cheers Alejandro _______________________________________________ Dr Alejandro Gonzalez Voyer Laboratorio de Conducta Animal Instituto de Ecología Circuito Exterior S/N Ciudad Universitaria Universidad Nacional Autónoma de México México, D.F. 04510 México Tel: +52 55 5622 9044 E-mail: alejandro.gonza...@iecologia.unam.mx Web: www.alejandrogonzalezvoyer.com > El 08/04/2016, a las 15:56, Sean McKenzie <mcken...@gmail.com> escribió: > > Hello, I have a two traits, one categorical (binary) and one continuous, > and I want to test for a relationship between them accounting for > phylogenetic signal. I have found a plethora of sources for examining > relationships between multiple categorical traits and many others for > examining multiple continuous traits, but I have been hard pressed to find > a test for one categorical and one continuous trait. A random blog post I > stumbled across said I could use either standard phylogenetic independent > contrasts (e.g. pic in ape) or general estimating equations (e.g. > compar.gee in ape). Unfortunately the examples only used continuous data > and tested for significance with regressions through the origin (e.g. > lm(var1_pic ~ var2_pic - 1) or compar.gee(var1 ~ var2 - 1, phy = tree) ). > This seems wrong when one variable was categorical, no? > > So, are PICs and PGEEs really appropriate for a single categorical and a > single continuous variable? If so, what is the appropriate way to test for > significance? If not, or if there's a better way, how can I test this? > > Thanks! > > Sean > > [[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/ [[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/ _______________________________________________ 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/