Description Usage Arguments Value Examples
Use bin.fi instead of this function. This is an internal function which calculates stochastic generalized fragility indices for 2x2 tables in a more optimized way than stochastic.fi.
1 2 3 4 5 6 7 8 9 10 11 12 13 |
crosstab |
a 2x2 contingency table with interventions on rows and outcomes on columns |
get.p |
a function that inputs a matrix and returns a p value |
can.vary |
a 2x2 boolean matrix for whether each entry can decrease. See the incidence fragility index article for explanation. |
r |
the index of the stochastic fragility index, by default 0.5. Having r=0 is equivalent to the generalized fragility index and having r=1 means that all patient combinations of the output size can reverse significance. |
nsim |
The number of simulations in the root finding algorithm, by default 10 |
alpha |
a numeric for the significance cutoff |
verbose |
a logical value for whether to print status updates while running |
cl |
a cluster from the |
D |
a parameter of Polyak-Ruppert averaging, by default 40 |
gamma |
a parameter of Polyak-Ruppert averaging, by default .2 |
gfi.init |
An initialization of the output size, by default 10 |
a length 2 list, with the first entry giving the stochastic generalized fragility index and the last entry giving the history of the root finding algorithm.
1 2 3 4 5 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.