Description Usage Arguments Value
This function takes in the cohort with ids and outputs the demographic characteristics like gender, birth year and insurance, race/ethnicity. It assumes the cohort has id variable explorys_patient_id. Always make sure thisse variable exists with the exact same name. The results are aggregated from the entire history of patients existence in the database. So for example if a patient reports Medicare as their insurance at some point in time and later reports Medicaid, they will be in both insurance categories as the demographic table doesn't incorporate (not possible to tell when the insurance information was recorded)
1 | get_demographics(supermart, sandbox, cohort)
|
supermart |
Name of the supermart where the data is stored. Eg. supermart_392 |
sandbox |
Name of the writable location usually sandbox where cohort is saved |
cohort |
Name of the cohort with explorys_patient_id's |
A dataframe with flags of counts/data of demographic variables
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.