Modelling the impact of mass vaccination against hepatitis B. I. Model formulation and parameter estimation