summarise_trials {adaptDiag}R Documentation

Summarise results of multiple simulated trials to give the operating characteristics

Description

Summarise results of multiple simulated trials to give the operating characteristics

Usage

summarise_trials(data, min_pos = 1, fut = 0)

Arguments

data

list. Output from the multi_trial function.

min_pos

integer. The minimum number of reference positive cases before stopping is allowed. Default is min_pos = 1.

fut

scalar. A probability threshold at which the posterior predictive probability of eventual success is compared to. If the probability is less than fut, the trial stops for binding futility. Default is fut = 0, which corresponds to no stopping for futility.

Value

A data frame of row length 1, with the following columns:

Examples

data <- multi_trial(
    sens_true = 0.9,
    spec_true = 0.95,
    prev_true = 0.1,
    endpoint = "both",
    sens_pg = 0.8,
    spec_pg = 0.8,
    prior_sens = c(1, 1),
    prior_spec = c(1, 1),
    prior_prev = c(1, 1),
    succ_sens = 0.95,
    succ_spec = 0.95,
    n_at_looks = c(200, 400, 600, 800, 1000),
    n_mc = 10000,
    n_trials = 20,
    ncores = 1
    )

summarise_trials(data, fut = 0.05, min_pos = 10)

[Package adaptDiag version 0.1.0 Index]