Learn R Programming

baskexact (version 1.0.1)

get_scenarios: Create a Scenario Matrix

Description

Creates a default scenario matrix.

Usage

get_scenarios(design, p1)

Value

A matrix with k rows and k + 1 columns.

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.

Examples

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

Run the code above in your browser using DataLab