OC.rule: Operating Characteristics Function

View source: R/OC.rule.R

OC.ruleR Documentation

Operating Characteristics Function

Description

A wrapper function to compute operating characteristics for a stopping rule at a set of toxicity rates.

Usage

OC.rule(data.type, ...)

Arguments

data.type

Type of data, choices include 'bin' for binary data and 'surv' for time-to-event data

...

Other options to be passed to the corresponding operating characteristics calculation. Please refer to the corresponding OC.rule() function for more details

Value

Please refer to the corresponding data type-specific OC.rule() function for more details

Examples

## Not run: bb_rule = calc.rule(data.type="bin",ns=1:50,p0=0.20,alpha=0.10,type="BB",param=c(2,8))
gp_rule = calc.rule(data.type="surv",n=50,p0=0.20,alpha=0.10,type="GP",tau=60,param=c(1,1000))
OC.rule(data.type="bin",rule=bb_rule,ps=seq(0.1, 0.5, 0.1))
OC.rule(data.type="bin",rule=bb_rule,ps=seq(0.1, 0.5, 0.1),tau=60,A=730)
OC.rule(data.type="surv",rule=gp_rule,ps=seq(0.1, 0.5, 0.1),MC=1000, A=730)

## End(Not run)

stoppingrule documentation built on April 12, 2025, 1:55 a.m.