grattan / covidReff

Simulating Covid reproduction in a partially vaccinated population
Other
4 stars 1 forks source link

add R_dist to enable R as RV #23

Closed wfmackey closed 3 years ago

wfmackey commented 3 years ago

This addresses #21

wfmackey commented 3 years ago

thanks for the tips re #22 @HughParsonage . I got a 10% reduction from options(X), and a further 8% reduction from using hutilscpp::sum_and3s.

HughParsonage commented 3 years ago

I recommend enclosing your tests in withr::with_seed(181319, so that you don't get sporadic test failures when your tests rely on random numbers. It could be cheating if you are selective with your seed of course, but I just chose the present time.