PatientData-class: Class "PatientData"

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

Description

A class designed to hold patient data when randomizing participants to a clinical trial.

Objects from the Class

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

Slots

name:

That patients name, a length one character vector.

covariates:

A named list, with one element for each variable.

date:

An instance of the Date class.

patientID:

A length one character vector containing the assigned patient ID.

strata:

A length one character vector describing the strata the patient will be randomized to.

Methods

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

Description

This class is used to hold the internal representation of patient data. We chose to use a named list to hold the covariate information as it might be relatively free form, with different centers (strata) providing different levels of detail. Internal code will need to be careful to handle this properly (and it doesn't currently).

The patientID slot will hold the assigned patient ID, usually this is provided by the software during randomization, but there are situations (eg cross-over trials, or trials with specific requirements where this might be pre-assigned) [current implementation does not handle this case].

Author(s)

RG and VC

Examples

1
showClass("PatientData")

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