[R] Simulating survival data

Frank E Harrell Jr f.harrell at vanderbilt.edu
Tue Mar 21 00:56:28 CET 2006


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


-- 
Frank E Harrell Jr   Professor and Chair           School of Medicine
                      Department of Biostatistics   Vanderbilt University




More information about the R-help mailing list