ncp_power: Find the approximate non-centrality parameter and power of a...

Description Usage Arguments Value

View source: R/ncp_power.R

Description

ncp_power returns the approximate non-centrality parameter and power of a modestWLRT for a range of possible values of t*.

Usage

1
2
ncp_power(t_star, model, recruitment, dco, length_t,
  alpha_one_sided = 0.025)

Arguments

t_star

A vector. A range of possible values for t*.

model

A piecewise constant hazard model. A list containing the change_points; the rates lambdas_0 on the control arm; and the rates lambdas_1 on the treatment arm.

recruitment

List of recruitment information. Containing

  1. Sample size on control, n_0

  2. Sample size on treatment, n_1

  3. Recruitment period, r_period

  4. Recruitment parameter for power model, k

dco

Time of data cut-off.

length_t
alpha_one_sided

Value

A list containing

  1. non-centrality parameter corresponding to each t* ncp

  2. power corresponding to each t* power


dominicmagirr/modestWLRT documentation built on Sept. 16, 2020, 2:43 p.m.