I used the following code that I got from this site in order to generate adjusted survival curves. I want to