I want to generate right censored data, but I want to be able to pass in a parameter to a function to dictate that a certain percentage of the data will be censored. I have found this R-package:
http://www.inside-r.org/node/218748 simple.surv.sim {survsim}
But it seems to generate things randomly, I can get the proportion of censored data doing a summary statistic on the output dataframe from this simple.surv.sim function, after it generates the data . But how would one get a particular proportion of the data to be censored. [Note: I will be using the weibull distribution as the distribution of choice]
Hope someone can help.