two_stage_sim: Two-stage simulation

View source: R/two_stage_sim.R

two_stage_simR Documentation

Two-stage simulation

Description

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

Usage

two_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 two_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.

Value

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


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