Description Usage Arguments Value Author(s) See Also Examples
Simulates survival and progression model
1 2 3 4 |
nruns |
number of simulations |
theta1 |
Coefficient for treatment covariate for time to progression |
theta2 |
Coefficient for treatment covariate for survival after progression |
phaz.progression |
log-hazard vector for progression |
phaz.survival |
log-hazard vector for survival |
accrual |
accrual time |
followup |
follow up time |
m |
number of intervals, maximum of times |
n |
number of samples |
rescale |
Factor to multiply times by |
etime |
The time that survival is evaluated |
seed |
Seed for the random number generator if you don't want the data that is analyzed to change. |
A three entry list
objects |
A Note that the tumor-free progression rates are estimated assuming that progression occurs at the first time it is detected. |
ests |
estimates for treatment effects followed by death rate and progression rate |
se.ests |
standard errors for the treatment effects |
David A. Schoenfeld
pssm-class
,
pssm-package
,
pssm.generate.data
,
pssm.object
,
pssm
,
pssm.survivalcurv
,
plot-methods
,
pssm.power
1 2 3 4 5 6 7 8 | ##---- Should be DIRECTLY executable !! ----
##-- ==> Define data, use random,
##-- or do help(data=index) for the standard data sets.
#creates 1 simulations with 50 observations
pss=pssm.simulate(nruns=1,theta1=.2,theta2=.2,phaz.progression=log(-log(.3)/4)*rep(1,3),
phaz.survival=log(-log(.15)/4)*rep(1,6),accrual=1,followup=2,,m=3,n=50,rescale=1)
#Summary of run 1
summary(pss$objects[[1]][[1]])
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.