Hello, Can I get help? I have the attached kind of material and I should create a time-dependant covariate from the variate "Optime"? I have tried using survsplit function but I don't know exactly how to do it. Or I can't get it to work. How can I split every id's follow-up time into two rows according the time of optime (The time they get treatment)?
Best regards, Paula Iso-Markku
______________________________________________ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.