Skip to contents

All functions

conv_tri_dist()
Convolution of the triangular distribution with the mixture component density (continuous case)
f0()
Calculate f0 for Different Components
f_gam()
Helper function to plot the fit of the serial interval distribution assuming an underlying gamma distribution
f_norm()
Helper function to plot the fit of the serial interval distribution assuming an underlying normal distribution
flower()
Calculate flower for Different Components
fupper()
Calculate fupper for Different Components
get_likelihood()
Compute the likelihood of a transmission pair given the serial interval distribution
integrate_component()
Integrate Component Function
integrate_components_wrapper()
Wrapper function to for integrate_components()
plot_si_fit()
Plot the epidemic curve and fitted serial interval distribution
right_truncation_correction()
Correct for right truncation in estimates of time-varying reproduction number
rt_estim()
Estimate Time-varying Reproduction Number
rt_estim_w_boot()
Estimate Time-varying Reproduction Number
si_estim()
Estimate serial interval using the EM Algorithm as developed by Vink et al. (2014)
weighted_var()
Calculate weighted variance
wt_loglik()
weighted likelihood for optimising parameters assuming underlying gamma distribution each point adds to likelihood given weight belonging to component 2: w2