three_stage_sim: Three-stage simulation

View source: R/three_stage_sim.R

three_stage_simR Documentation

Three-stage simulation

Description

Simulate a three-stage trial, analyzed with a modestly-weighted log-rank test

Usage

three_stage_sim(n_sims = 1, design, model = NULL, recruitment = NULL,
  info_frac_v = TRUE)

Arguments

n_sims

The number of simulations.

design

The design object, created using three_stage_design

model

Model assumptions. Default is NULL, in which case model assumptions in the design object are used.

recruitment

Recruitment assumptions. Default is NULL, in which case recruitment assumptions in the design object are used.

info_frac_v

Is the information fraction based on the variance of the U statistics. Default is TRUE. If FALSE then the information fraction is based on the number of events.

Value

A data-frame containing: critical values, z-statistics, timing of analyses.


dominicmagirr/gsdelayed documentation built on May 15, 2024, 8:24 a.m.