expected_events_two_arm: Expected number of events

View source: R/expected_events.R

expected_events_two_armR Documentation

Expected number of events

Description

expected_events_two_arm returns the expected number of events at a given data-cut-off time.

Usage

expected_events_two_arm(dco = 28, recruitment, model,
  total_only = TRUE)

Arguments

{dco}

Time of data cut-off.

{recruitment}

List of recruitment information. Containing

  1. Sample size on control, n_0

  2. Sample size on experimental, n_1

  3. Recruitment period, r_period

  4. Recruitment parameter for power model, k

{model}

The piecewise hazard model. A list containing the change_points and lambdas.

{total_only}

By default, the function returns only the expected number of events. To see more detailed output set total_only = FALSE.

Value

The expected number of events at dco.


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