get_combo_power {gsDesign2} | R Documentation |
Function to calculate power
Description
A helper function passed to uniroot()
Usage
get_combo_power(n, bound, info_fh, theta_fh, corr_fh, algorithm, beta, ...)
Arguments
n |
Input sample size |
algorithm |
an object of class |
beta |
Type II error. |
... |
Additional parameters passed to mvtnorm::pmvnorm. |
Details
This function calculates the difference between the derived power and the targeted power (1 - beta), based on the provided sample size, upper and lower boundaries, and treatment effect.
Value
The optimal sample size (a single numeric value)
[Package gsDesign2 version 1.1.3 Index]