powered by
Simulate failure time from a semiparametric transformation model
rstm(n, family = c("PH", "PO", "P2"), linear.predictors, baseline.hazard = 1)
integer. Sample size
string.
vector. It can also be a matrix of 1 column, the dimension will be dropped
numeric.
Called by sim.fong
# NOT RUN { n=100 beta= c(log(.5), log(.7), log(1.2)) t0=2.9999 init = c(log(0.0373*t0),beta) ft=rstm (n, family="PH", runif(n,1,2), baseline.hazard=0.032) # }
Run the code above in your browser using DataLab