liamrevell / phytools

GNU General Public License v3.0
207 stars 56 forks source link

How to do an analyses for two categorical variables in Phytools? #100

Closed emxly86 closed 2 years ago

emxly86 commented 2 years ago

Hi everyone! Just wondering if there is a way to do something similar to a chi square analyses in Phytools? I have two sets of categorical variables that I am trying to compare, and I can't seem to figure out how using Phytools. Thanks so much in advance!!

liamrevell commented 2 years ago

Maybe you're thinking of Pagel's (1994) binary correlation test (phytools::fitPagel) or the D-test by Huelsenbeck et al. (2003) (phytools::Dtest).