GLM error - BEAUti 1.10.4 - predictor data

87 views
Skip to first unread message

Suzanne Williams

unread,
Aug 19, 2021, 3:06:42 PM8/19/21
to beast-users

Hi All,

I would be grateful for help with the following error message when trying to import predictor data into BEAUti 1.10.4.

"Predictor data does not have the same number of rows as trait states"

I am setting up a GLM model for a binary trait and the imported file (predictor data) includes continuous trait data  in a csv file, with all zeroes changed to 0.000001.

The number of rows (species) is identical in both datasets and there are no additional empty lines in the predictor data so I am at a loss on what to change.

many thanks,
Suzanne

Suzanne Williams

unread,
Aug 20, 2021, 2:21:16 PM8/20/21
to beast-users
An update - I am wondering now whether the problem is because I am trying to import continuous predictor data for a binary trait.

I have 92 species and four traits (three binary, one continuous). I wanted to look for correlated evolution between the discrete traits and the continuous trait, with the continuous trait as the predictor, but I don't see how I can do this. If I follow the tutorial I need to list my continuous traits for 92 species against two binary options. Is that correct?If so, what should it look like?

my data are:
Species, Cont_trait, binary_1, binary_2, binary_3
SpeciesA, 234, A, C, V
Species2, 453, A, C, B
Species 3, 877, P, N, B
...

Zhenyu Zhang

unread,
Aug 24, 2021, 3:15:57 PM8/24/21
to beast-users
Hi Suzanne,

We have a recent development in BEAST to model continuous traits and binary traits together, and to infer the correlation among them. https://projecteuclid.org/journals/annals-of-applied-statistics/volume-15/issue-1/Large-scale-inference-of-correlation-among-mixed-type-biological-traits/10.1214/20-AOAS1394.full 

The XML setup hasn't been integrated into BEAUti yet. But if you are interested, I'd be happy to help and collaborate. 

Best, Zhenyu 

Reply all
Reply to author
Forward
0 new messages