decide_trial: Apply a decision rule to a trial from 'sim_trial'

Description Usage Arguments Value

Description

Apply a decision rule to a trial from 'sim_trial'

Usage

1
2
decide_trial(trial, fut_k = 0.1, suc_k = 0.9, inf_k = 0.05,
  sup_k = 0.95)

Arguments

trial

The data.table fro the trial in question

fut_k

The probability cut-off for futility.

suc_k

The probability cut-off for success

inf_k

The probability cut-off at final analysis for declaring theta_1 < theta_2

sup_k

The probability cut-off at final analysis for declaring theta_1 > theta_2

fut_var

The name of the variable used for determining futility at interim analyses.

suc_var

The name of the variable used for determining success at interim analyses.

Value

A data.table of the stage at which a decision was made.


jatotterdell/optimum documentation built on May 29, 2019, 1:24 p.m.