Researchers have created the first mathematical model that can predict how a cancer patient will benefit from certain immunotherapies, according to a study.