Data-driven model shows wearing masks saves lives