Hi, I'd like to simulate survival times according to continuous covariate values. Suppose we have a continuos covariate whose value of zero corresponds to a mean survival time of 180 days and whose value of 0.5 corresponds to a mean survival time of 240 days. How can I use this information to simulate survival times according to the covariate information? I guess I have to use distribution functions like rexp or rweibull? How can I use them to include this information on the covariates? I'd be very glad for helpful information!
Kind regards Andres -- View this message in context: http://r.789695.n4.nabble.com/simulating-survival-data-according-to-covariate-values-tp4636729.html Sent from the R help mailing list archive at Nabble.com. ______________________________________________ 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.