single_stage_sim: Single-stage simulation

View source: R/single_stage_sim.R

single_stage_simR Documentation

Single-stage simulation

Description

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

Usage

single_stage_sim(n_sims = 1, design, model = NULL,
  recruitment = NULL)

Arguments

n_sims

The number of simulations.

design

The design object, created using single_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 value, z-statistic, timing of analysis.


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