Converted Script into a single Function that takes in data and outputs the desired estimates for a specified revival model