epiforecasts / covid-rt-estimates

National and subnational estimates of the time-varying reproduction number for Covid-19
https://epiforecasts.io/covid/
MIT License
34 stars 17 forks source link

I123 tidying, debug and error squashing #127

Closed joeHickson closed 4 years ago

joeHickson commented 4 years ago

closes #123 whilst trying to remove the number of warning / errors produced.

Temporarily include a curl replacement for the dataverse R replace file call to see if it improves issues with not all files transmitting.

Includes some unit tests and a new dataset for testing - "test". There is a sinusoidal data generator that powers this - utils::generate_clean_cases that works on a periodicity of max(start-peak, peak-end) days where the data length, peak position and amplitude are configurable (amplitude = 1/2 peak_cases, offset = 1/2 peak_cases.

example (peak_cases = 2k, days_since_peak = 40, number_of_days = 90): image image

joeHickson commented 4 years ago

Testing against canada before confirming PR as ready