op_power_ord {gsMAMS}R Documentation

Provides operating characteristics of group sequential MAMS trial for ordinal outcome

Description

Computes power and other characteristics for group-sequential MAMS trial for ordinal outcome.

Usage

op_power_ord(alpha, beta, p, frac, or0, or, nsim, prob, seed)

Arguments

alpha

numeric Type I error.

beta

numeric Type II error.

p

numeric Number of treatment arms.

frac

numeric Vector of fractions for information time at each look.

or0

numeric Odds ratio of ineffective treatment group vs control.

or

numeric Odds ratio of effective treatment group vs control.

nsim

numeric Number of simulations.

prob

numeric Probability of ordinal outcomes in control group.

seed

numeric Random seed number.

Value

A list of power, stage-wise probability of success, average sample size used per arm, stopping probability, probability of futility.

Examples

op_power_ord(alpha = 0.05,
             beta = 0.1,
             p = 4,
             frac = c(0.5, 1),
             or0 = 1.32,
             or = 3.06,
             nsim = 12,
             prob = c(0.075, 0.182, 0.319, 0.243, 0.015, 0.166),
             seed = 13)

[Package gsMAMS version 0.7.2 Index]