revfragility.index: Reverse Fragility Index Calculation

Description Usage Arguments Value Examples

View source: R/revfragility.index.R

Description

Compute the reverse fragility index for a dichotomous outcome, i.e. the number of flipped cases it would take to make a non-significant result significant.

Usage

1
2
revfragility.index(intervention_event, control_event, intervention_n, control_n,
  conf.level = 0.95, verbose = FALSE, print.mat = FALSE)

Arguments

intervention_event

Number of events in intervention group

control_event

Number of events in control group

intervention_n

Total number of patients in intervention group

control_n

Total number of patients in the control group

conf.level

Significance level

verbose

Logical indicating if function will return verbose results or only fragility index

print.mat

Logical indicating if 2x2 matrices should be printed for each iteration of algorithm

Value

If verbose is FALSE, returns a list with fragility index. If verbose is TRUE, returns a list with p-values for each fragility index at each iteration of the algorithm.

Examples

1
revfragility.index(6,5,50,50, verbose=TRUE, print.mat=FALSE)

kippjohnson/fragilityindex documentation built on May 20, 2019, 10:23 a.m.