Description Usage Arguments Value Examples
This is a function which is a wrapper around internal functions which calculate the fragility index for different data types and test specifications. It is used for survival data. The function uses a log rank test by default.
1 2 3 4 5 6 7 8 9 10 11 12 |
time |
the time of either an event or right censoring |
status |
a 0,1 variable, with 1 if event and 0 if right-censored |
group |
a factor with levels representing group membership |
test |
a string specifying the test type, default is 'logrank' but could also use 'rmst.diff' for a restricted mean survival test. |
q |
the per-patient probability of permitted modifications, bigger values further constrain the permitted modificiations. |
cl |
a cluster from the |
alpha |
a number for the size of test |
tau |
an optional parameter for the rmst difference test, by default NULL |
verbose |
a logical value for whether to print status updates while running |
max.time |
a numeric for when the study ended and no more events can be observed, by default Inf |
the output of greedy.fi for the time to event test
1 2 3 4 | dat <- get.survival.data(100, 6)
cl <- parallel::makeCluster(parallel::detectCores() - 2)
out <- surv.fi(dat$time, dat$status, dat$group, q=0.3, cl = cl, verbose=TRUE)
parallel::stopCluster(cl)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.