sample_size_norm_global {adpss} | R Documentation |
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.
sample_size_norm_global(initial_test = 0, sample_size = TRUE, effect_size = 0, time = 0, target_power = 0.8, final_time = 0, tol_sample_size = 1e-05, input_check = TRUE)
initial_test |
Designate the initial working test generated by |
sample_size |
If |
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. |
target_power |
The power, on the basis of which the sample size calculation will be performed. |
final_time |
The time of the final analysis. |
tol_sample_size |
The precision in calculation of the sample size. |
input_check |
Indicate whether or not the arguments input by user contain invalid values. |
It returns the sample size (when sample_size = TRUE
) or the power (when sample_size = FALSE
).
adaptive_analysis_norm_global
for example of this function.