brad-cannell / bfuncs

A random smattering of Brad's Functions
MIT License
2 stars 0 forks source link

mean_table improve confidence intervals #19

Open mbcann01 opened 6 years ago

mbcann01 commented 6 years ago

Is there a way to force CI's to have a lower bound of zero when negative values don't make sense?

mbcann01 commented 6 years ago

Suggestions from Sumi:

You can use the exact method based on the chi-squared distribution which will not yield a negative.

https://www.statsdirect.com/help/rates/poisson_rate_ci.htm

https://stats.stackexchange.com/questions/10926/how-to-calculate-confidence-interval-for-count-data-in-r