PatientID-class: Class "PatientID"

Description Objects from the Class Slots Methods Description Author(s) Examples

Description

A class to represent ID strings that will be assigned to patients as they are randomized in a clinical trial.

Objects from the Class

Objects can be created by calls of the form new("PatientID", ...).

Slots

strata:

A vector of strata identifiers.

start:

The starting indices for each strata.

stop:

The largest value for each strata.

Methods

No methods defined with class "PatientID" in the signature.

Description

Generally patient IDs are assigned at the time a patient is randomized. The scheme used here is very simple, disjoint sets of integers are used for the different strata.

Once all patiend IDs have been allocated further attempts to randomize patients on that strata should fail.

Author(s)

RG and VC

Examples

1
2
3
4
5
6
 pIDs = new("PatientID",
            strata = c("Center1", "Center2"),
            start = c(1000L, 2000L),
            stop = c(1150L, 2150L)
 )
 validPID(pIDs)

randPack documentation built on Nov. 8, 2020, 5:32 p.m.