I found an issue with the brownie.lite function, it doesn't use the names in the named vector argument called se. So it only works properly if the se vector contains the values in the order of the tips of the tree. This problem does not apply to the x argument, that one is fine. The reason is that in the brownie.lite function the x variable is reordered with the line x <- x[tree$tip.label] but such reordering is missing for se. An easy solution would be to change to following lines:
if (!is.null(se))
se <- matchDatatoTree(tree, se, "se")
else {
To this:
if (!is.null(se)) {
se <- matchDatatoTree(tree, se, "se")
se <- se[tree$tip.label]
} else {
Dear Dr. Revell,
I found an issue with the
brownie.lite
function, it doesn't use the names in the named vector argument calledse
. So it only works properly if these
vector contains the values in the order of the tips of the tree. This problem does not apply to thex
argument, that one is fine. The reason is that in thebrownie.lite
function thex
variable is reordered with the linex <- x[tree$tip.label]
but such reordering is missing forse
. An easy solution would be to change to following lines:To this: