exp_sample_size_norm_global: Calculate expected sample size for a globally efficient...

View source: R/work_test_norm_global.R

exp_sample_size_norm_globalR Documentation

Calculate expected sample size for a globally efficient adaptive design when working design is followed until the final interim analysis time and the final analysis time is fixed.

Description

sample_size_norm_global calculates the power if the time of the final analysis is given and otherwise the sample size. The computed power for effect_size is an approximate lower bound. Sample size is also calculated on the basis of the bound.

Usage

exp_sample_size_norm_global(
  initial_test = 0,
  effect_size = 0,
  time = 0,
  final_time = 0,
  input_check = TRUE
)

Arguments

initial_test

Designate the initial working test generated by work_test_norm_global function.

effect_size

The effect size, on the basis of which the power or sample size calculation will be performed. In globally efficient designs, any real value is allowed.

time

The time of the current analysis.

final_time

The time of the final analysis.

input_check

Indicate whether or not the arguments input by user contain invalid values.

Value

It returns the expected sample size when 'effect size' is the truth.

See Also

adaptive_analysis_norm_global for example of this function.


adpss documentation built on Dec. 9, 2022, 5:09 p.m.