Obtaining the cox survival curves