Description Usage Arguments Value Examples
View source: R/AddNewSubject.R
Add a new subject based on the prognostic factor and the id of the subject. This function is often used inside the function AddNextSubject.
1 | AddNewSubject(progfact, usubjid)
|
progfact |
A TrainRandoProgFact object defining the prognostic factors |
usubjid |
the identifier of the subject (that is the id of the patient) |
NewSubj , A new patient with the prognostic level randomly assigned according to according to independant uniform distribution.
1 | myNewSubj <- AddNewSubject(progfact=myprogfact,usubjid='Pat001')
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.