Open Ax3man opened 6 years ago
You are right. We haven't implemented bootstrap for Poisson models yet. I will do it soon.
Not a problem of course! Just mentioning it here since it is perhaps not so clear to users what is going on when this fails.
Is the bootstrap for Poisson models still in the plan? It would be a great help for evaluating these models!
Was bootstrapping ever done for these models? I'm using the bootstrap for normal phylolm and it'd be great to plot model results alongside with same method. Or is it easy to code up from inspecting the function?
Coding bootstrap for Poisson glm is straightforward. All you need is a function to simulate from the Poisson model (similar to the rTrait/rbinTrait functions). Then, you can integrate it into phyloglm just like the boostraps for logistic regression. I've got a lot on my plate, so I couldn't do it right now. Please do a pull request if you code up something and would like to add them to our package.
From the help, but with Poisson:
phyloglm
doesn't do anything with the bootstrapping for Poisson models, but does run the model normally. Asking for thesummary
then returns an error fromprint.summary.phyloglm
:presumably since it is looking for bootstrap results that aren't actually there.