Closed caterinap closed 6 years ago
Cool thanks Caterina! I have now done all of these things, and pushed back on Github. Great suggestions! I have also changed substantially so that now prints in the same style as tree_physig, for unity of style across!
The way I have currently set up tree_Discrete (and will set up the other xxx_Discretes) is that there is no match_dataphy call. The reason for this is the different way in which Geiger/fitDiscrete wants the data compared to phylolm (i.e. as a named vector, rather than a data frame). We could either update match_dataphy to also process this, or write a new specific function for this purpose, but let's not for now. Would be nicer and more consistent if we did so here too, but if people wrongly feed the data, the fitDiscrete call will throw its standard error anyway, so not doing this is sufficient for now, I think.
Very nice Gijsbert! I agree with this approach. Also people might find it easier if the data input follows the same style of the original function on Geiger.
On Tue, 21 Nov 2017 at 22:25 Gijsbert Werner notifications@github.com wrote:
The way I have currently set up tree_Discrete (and will set up the other xxx_Discretes) is that there is no match_dataphy call. The reason for this is the different way in which Geiger/fitDiscrete wants the data compared to phylolm (i.e. as a named vector, rather than a data frame). We could either update match_dataphy to also process this, or write a new specific function for this purpose, but let's not for now. Would be nicer and more consistent if we did so here too, but if people wrongly feed the data, the fitDiscrete call will throw its standard error anyway, so not doing this is sufficient for now, I think.
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/paternogbc/sensiPhy/issues/162#issuecomment-345998026, or mute the thread https://github.com/notifications/unsubscribe-auth/AJMWObd4JU0z1BkWre0VJyFtz3vjAVJmks5s4rMogaJpZM4Qdy1N .
--
email : paternogbc@gmail.com Google Citations: https://scholar.google.com/citations?user=uNxyHMkAAAAJ&hl=pt-BR https://scholar.google.com/citations?user=uNxyHMkAAAAJ&hl=pt-BR Research Gate: https://www.researchgate.net/profile/Gustavo_Paterno2 https://www.researchgate.net/profile/Gustavo_Paterno2 Github: https://github.com/paternogbc Blog : www.Raprendiz.wordpress.com Skype : gustavopaterno Lattes: http://lattes.cnpq.br/3661227833522004
This is now all done, plotting works nicely and I think the tree_discrete/continuous functions are pretty much done :-)
Hey guys, I've been testing tree_Discrete. It works nicely! Just some thoughts for small improvements:
transform
is different from "none" it prints a bunch of stuff, we could silent itoptpar
is NA, don't show it in summary and plottree_Discrete
function you hadN.obs=n
, I assumed it wasn.tree
- please change it if it's not the case. I changed this and some very minor typos in 2649a3b