surv1sel | R Documentation |
Uses simulations with exponential failure times and uniform accrual to estimate the probability of each arm being the best in a randomized phase II study, where best is defined as the lowest hazard rate in a Cox proportional hazards model.
surv1sel(ng, npg, acc.per, nevents, haz, nsamp = 1000)
ng |
Number of groups |
npg |
Number of subjects per group (the same scalar value is assumed for all groups) |
acc.per |
The planned accrual period |
nevents |
The total planned number of events (across all arms) at the time of analysis |
haz |
A vector of length |
nsamp |
The number of samples to generate |
Assumes that the clinical trial will enroll ng*npg
subjects uniformly
over the period (0,acc.per)
, with the analysis performed when
nevents
failures have been observed. A Cox proportional hazards
model with indicator variables for the groups is fit and the group estimated
to have the lowest hazard rate is selected as the best. In the function,
samples are repeatedly generated from exponential distributions with the
specified hazard rates and the proportion of the samples for which each
group is selected as the best is calculated.
The vector giving the proportion of times each group is selected as the best (ie has the lowest estimated hazard rate).
surv1samp
surv1sel(6, 55, 12, 40 * 6, log(2) / c(7.2, 4.8, 4.8, 4.8, 4.8, 4.8))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.