## tested in bm.R ## covariate replacement tested in measles.R