psd: Function for returning treatment assignments in Pocock's...

Description Usage Arguments Examples

View source: R/carFunctions.R

Description

This function takes a vector of factor level assignments, and returns treatment assignments

Usage

1
psd(x, p1 = 3/4, best = 0, tr = NULL, n.trt)

Arguments

x

Vector of factor level assignments

tr

Tr is the vector of treamtnet assignments. Default is NULL

n.trt

Number of treatments used in the trial

p

Default is 3/4.

Best

is the selected best treatment if past the first analysis. Default is 0

n.trt

The number of treatments used in the analaysis if at the first stage in the analysis.

Examples

1
psd(x = seamlessTrials::all)

Gtmille2/twoStageSeamless documentation built on Oct. 30, 2019, 6:36 p.m.