check_RET_arguments: check_RET_arguments

View source: R/utilities.R

check_RET_argumentsR Documentation

check_RET_arguments

Description

Check arguments for their respective condition

Usage

check_RET_arguments(sig.level, power, Delta, n, allocation)

Arguments

sig.level

A numeric value specifying the significance level (type I error probability)

power

A numeric value specifying the target power (1 - type II error probability)

Delta

A numeric value specifying the non-inferiority or superiority margin. Is between 0 and 1 in case of non-inferiority and larger than 1 in case of superiority.

n

The total sample size. Needs to be at least 7.

allocation

A (non-empty) vector specifying the sample size allocation (nExp/n, nRef/n, nPla/n)


ThreeArmedTrials documentation built on Dec. 28, 2022, 2:06 a.m.