Preferential sampling and model checking in phylodynamic inference