Description Usage Arguments Examples
Ethnicity is either 'white' or 'non-white'. Age is broken down to decades, with 70-90 decades merged.
1 | prepDemographics(data, demo, ageCategories = c(seq(20, 70, 10), 90))
|
data |
dataframe, rows are clinical visits to be classified, columns are features including clinical visits ids and at least the following columns:
|
demo |
dataframe, patient demograpics and biomarker information, containing columns:
returns - data: dataframe, with formated demographics |
1 2 3 4 5 6 7 8 9 10 11 | data("fake_data")
t <- 'rate'
fake_tumorInfo <- fake_data$events # save tumor location and laterility strings before event cleaning
fake_demo <- fake_data$demo
fake_data$events <- cleanData(fake_data$events, tType = t)
# collect patient info for each event
# note that only eventName, iois, and eventID columns are used for SPM
fake_data <- merge(fake_data$events, fake_data$person, by='iois', all.x=T)
fake_data <- prepDemographics(fake_data, fake_demo) # prep for each event, since age does change
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.