get_scenarios {baskexact}R Documentation

Create a Scenario Matrix

Description

Creates a default scenario matrix.

Usage

get_scenarios(design, p1)

Arguments

design

An object of class Basket created by setupOneStageBasket or setupTwoStageBasket.

p1

Probabilitiy under the alternative hypothesis.

Details

get_scenarios creates a default scenario matrix that can be used for opt_design. The function creates k + 1 scenarios, from a global null to a global alternative scenario.

Value

A matrix with k rows and k + 1 columns.

Examples

design <- setupOneStageBasket(k = 3, p0 = 0.2)
get_scenarios(design = design, p1 = 0.5)

[Package baskexact version 1.0.1 Index]