simulate_preference_trial: Simulate trial accounting for preference

View source: R/simulate_trial_model2.R

simulate_preference_trialR Documentation

Simulate trial accounting for preference

Description

Simulate trial accounting for preference

Usage

simulate_preference_trial(
  dat = generate_preference_data(),
  n_seq = c(100, 150, 200, 250, nrow(dat$y)),
  alloc = matrix(1/ncol(dat$y), length(dat$p), ncol(dat$y)),
  sup_eps = 0.95,
  eff_eps = 0.95,
  brar = FALSE,
  min_decision = 20,
  ...
)

Arguments

dat

Data generated from 'generate_preference_data'

n_seq

Sequence of interim analyses

alloc

Initial allocation probabilities (matrix)

brar

Use BRAR?

min_decision

The minimum sample size in a subgroup to make decision/switch on BRAR

...

Other arguments to 'vb_lm' functions


jatotterdell/mfittrial documentation built on Sept. 30, 2022, 12:23 p.m.