get_combo_power: Function to calculate power

View source: R/gs_design_combo.R

get_combo_powerR 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 GenzBretz, Miwa or TVPACK specifying both the algorithm to be used as well as the associated hyper parameters.

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)


gsDesign2 documentation built on April 3, 2025, 9:39 p.m.