n2: Compute n_2 function

Description Usage Details

Description

Computes the optimal n_2-value for a given first stage z_1-value in the Lagrangian framework.

Usage

1
n2(parameters, z, n1, lambda1, lambda2, cf, ce)

Details

n2 differs from response only so far that the values are set to 0 outside the interval (cf,ce).

@param parameters Parameters specifying the design @param z Z_1-value of the first stage @param n1 First stage sample size @param lambda1 Penalization parameter for type I error @param lambda2 Penalization parameter for type II error @param cf Boundary for stopping for futility @param ce Boundary for stopping for efficacy


MatheMax/OptReSample documentation built on May 5, 2019, 8:14 a.m.