Open jrcpulliam opened 5 years ago
I think we may be able to address this by converting zeros to NA before fitting the model. That way, we can rely on the model functionality to handle the missing data in the way it sees fit. The thing about using this approach is that it will affect the confidence interval estimates. I'll get around to an example when I can get to coding it (which is after I slog through a month of emails github issues 😩)
Example:
Created on 2019-01-07 by the reprex package (v0.2.1)
This behavior derives from the fact that i2 has dates with 0 cases but i1 does not, and these dates are removed for both groups when estimating the growth rate.