Description Usage Arguments Value Examples
Extracts all subject level data as a data.frame from a FAIRsimulator individual object
1 2 3 4 5 6 | getSubjectItems(subjectObj, scalarItems = c("StudyID", "AgeAtRand",
"DateAtRand", "RandStudyTime", "RandCohortTime", "CurrentAge",
"CurrentCohortTime", "TreatmentIndex", "Treatment", "TreatmentEff", "RandNum",
"DropoutStudyTime", "DropoutCohortTime"), covariates = "Covariates",
longitudinalItems = c("SampleAge", "CohortSampleTime", "StudySampleTime",
"Data"), prevTreatment = FALSE)
|
subjectObj |
A FAIRsimulator individual object |
scalarItems |
The scalar items to extract from the individual object. Set to |
covariates |
Name of the item that holds the subject specific vector of covariates. Set to |
longitudinalItems |
Name of the longitudinal items to be extracted. Set to |
A data frame with nrows=length of the longitudinal items. The scalar and covariate items are replicated to match the longitudinal items.
1 2 3 4 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.