lamho86 / phylolm

GNU General Public License v2.0
30 stars 12 forks source link

Add a `confint` method for `phylolm` objects #41

Closed pbastide closed 3 years ago

pbastide commented 3 years ago

Hi,

Currently, confint applied to a phylolm object does not throw any warning, but falls back to confint.default, which uses the quantiles of the Gaussian distribution.

With the proposed change, confint would call confint.lm, and gives the (broader) intervals obtained from a Student distribution with n-d degrees of freedom.

See the added tests for an example.

I added a line in the doc and NAMESPACE, checks pass locally, but I hope I did not forget anything while defining the method ?

Thanks, Paul