Re: [R-sig-phylo] correlation of binary and multistate

2018-03-22 Thread Arbuckle Kevin .
ian O'Meara" <omeara.br...@gmail.com> To: John Denton <jden...@amnh.org> Cc: "r-sig-phylo@r-project.org" <r-sig-phylo@r-project.org> Subject: Re: [R-sig-phylo] correlation of binary and multistate Message-ID: <cakywhkoayv28kqbfi_pxmtjehdpopfkfly2dakocfzucs4y.

Re: [R-sig-phylo] correlation of binary and multistate

2018-03-21 Thread Brian O'Meara
You can do this with corHMM by making an appropriate model with rayDISC. For example, if character A has states 0,1 and character B has states 0,1,2, you then recode this into a single multistate character: 00 -> 0 01 -> 1 02 -> 2 10 -> 3 11 -> 4 12 -> 5 and then create a rate matrix that