[R] Simulating survival data

Peter Tait petertait at sympatico.ca
Tue Mar 21 04:28:39 CET 2006


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 at 
different sample sizes.
 From reading the documentation and running the examples,  Quantile2() 
does not appear to do what I need.
Please correct me if I'm wrong.
Cheers
Peter

Frank E Harrell Jr wrote:
> petertait at sympatico.ca 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 randomization.
>> Thanks for the help.
>> Peter
>
> library(Hmisc)
> ?spower
>
>




More information about the R-help mailing list