Text this: Joint quantification of transmission dynamics and diagnostic accuracy applied to influenza