get_DT_Exposure_Endpoint | R Documentation |
Combine the exposure (Riluzole history) and outcome (Hospitalization records) for SCCS study design.
get_DT_Exposure_Endpoint( demo, rx, ip, riluzole_name, obst, obed, icd_pneumonia, icd_arf, ... )
demo |
the dataset with demographic information, including id, dob, dod, sex, onset_date. Pls check the data shall. |
rx |
the dataset with all prescription records, including id, drug name, date of prescription start and end, type of presciption (IP, OP, AE, Discharge). Pls check the data shall. |
ip |
the dataset with all in-hospitalization records, including id, date of adminssion, date of discharge, type of records (setting, IP, OP, AE). Pls check the data shall. |
riluzole_name |
the name in your database stands for riluzole. |
a combined data set in data table format. One patients may have multiple rows of records.
get_DT_Exposure_Endpoint(demo,ip,rx) id sex dob dod onset_date date_rx_st date_rx_end date_adm date_dsg 1: 1 M 1966-09-10 2017-06-06 2015-07-23 2013-05-31 2014-06-02 2015-07-21 2015-07-23 2: 1 M 1966-09-10 2017-06-06 2015-07-23 2013-05-31 2014-06-02 2016-10-17 2016-10-22 3: 1 M 1966-09-10 2017-06-06 2015-07-23 2013-05-31 2014-06-02 2017-01-24 2017-01-27 4: 1 M 1966-09-10 2017-06-06 2015-07-23 2013-05-31 2014-06-02 2017-03-03 2017-03-31 5: 1 M 1966-09-10 2017-06-06 2015-07-23 2013-05-31 2014-06-02 2017-04-10 2017-04-10 --- 2663: 88888 F 1955-07-02 2018-11-28 2017-11-28 2018-05-28 2018-07-22 2018-07-30 2018-08-10 2664: 88888 F 1955-07-02 2018-11-28 2017-11-28 2018-05-28 2018-07-22 2018-10-31 2018-11-02 2665: 88888 F 1955-07-02 2018-11-28 2017-11-28 2018-07-25 2018-11-20 2017-11-27 2017-11-28 2666: 88888 F 1955-07-02 2018-11-28 2017-11-28 2018-07-25 2018-11-20 2018-07-30 2018-08-10 2667: 88888 F 1955-07-02 2018-11-28 2017-11-28 2018-07-25 2018-11-20 2018-10-31 2018-11-02
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.