AddNewSubject: AddNewSubject.

Description Usage Arguments Value Examples

View source: R/AddNewSubject.R

Description

Add a new subject based on the prognostic factor and the id of the subject. This function is often used inside the function AddNextSubject.

Usage

1
AddNewSubject(progfact, usubjid)

Arguments

progfact

A TrainRandoProgFact object defining the prognostic factors

usubjid

the identifier of the subject (that is the id of the patient)

Value

NewSubj , A new patient with the prognostic level randomly assigned according to according to independant uniform distribution.

Examples

1
myNewSubj <- AddNewSubject(progfact=myprogfact,usubjid='Pat001')

NicDubois/trainingrando documentation built on March 13, 2020, 5:33 a.m.