[R] Simulating survival data

2006-03-20 Thread petertait
Hi, I would like to repeatedly create some simulated survival data. Is there an R package that has a function that can do this? I would like to simulate a clinical trial that has 2 study arms and the outcome of interest is measured up to 30 days from randomization. Thanks for the help.

Re: [R] Simulating survival data

2006-03-20 Thread Frank E Harrell Jr
[EMAIL PROTECTED] wrote: Hi, I would like to repeatedly create some simulated survival data. Is there an R package that has a function that can do this? I would like to simulate a clinical trial that has 2 study arms and the outcome of interest is measured up to 30 days from

Re: [R] Simulating survival data

2006-03-20 Thread Peter Tait
Hi Dr.Harrell, thanks for the tip but I am not sure Quantile2() does what I'm need. I need to repeatedly simulate 30 day survival data with a given sample size and estimate a hazard ratio for each simulated data set. I want to create a 95%CI for the hazard ratio by creating a distribution for it