score_direct: Compute the score

Description Usage Arguments Details

Description

score_direct computes the objective score approximately if the c_2-function and the n_2-function are approximated via a set of splines.

Usage

1

Arguments

parameters

Parameters (alpha, power, standardized effect) whith which you want to build your design

cf

Boundary for stopping for futility after the first stage

ce

Boundary for stopping for efficacy after the first stage

nodes

Nodes for the stage two functions

c2

c_2-values that correspond to nodes

n1

First stage sample size

n2

n_2-values that correspond to nodes

Details

Note that nodes, c2 and n2 have to be of the same length. The score is given as the expected sample size of the design under the alternative hypothesis. The integrals are approximated via the trapezial rule.


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