simulate_longitudinal_trial: Simulate a longitudinal trial

simulate_longitudinal_trialR Documentation

Simulate a longitudinal trial

Description

Simulate a longitudinal trial

Usage

simulate_longitudinal_trial(
  n_seq = c(100, 150, 200, 250, 400),
  dat = simulate_general_outcome_data(nsims = 1, nsubj = max(n_seq)),
  eff_eps = 0.95,
  sup_eps = 0.95,
  alloc = rep(1/4, 4),
  brar = TRUE,
  make_dt = TRUE,
  zero_sum = FALSE,
  scale = FALSE,
  ...
)

Arguments

n_seq

The sequence of analyses by number of subjects with 12 week observation

dat

The dataset for this particular simulation

eff_eps

Effective decision threshold

sup_eps

Superiority decision threshold

alloc

Initial allocation ratio

brar

Update allocation ratio using BRAR

Value

A list (or data.table) giving the trial results


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