Learn R Programming

basksim (version 1.0.0)

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 created with one of the setup functions.

p1

Probability 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 <- setup_fujikawa(k = 3, p0 = 0.2)
get_scenarios(design = design, p1 = 0.5)

Run the code above in your browser using DataLab