cleaning_mnd: Create a dataset for survival and incidence calculation

cleaning_mndR Documentation

Create a dataset for survival and incidence calculation

Description

Create a dataset for survival and incidence calculation

Usage

cleaning_mnd(
  demo,
  dx,
  rx,
  codes_sys,
  codes_drug_sys,
  riluzole_name = "riluzole|rilutek",
  ...
)

Arguments

demo

the dataset with demographic information, including id, dob, dod, sex, onset_date. Pls check the data shall.

dx

the dataset with all diagnosis information, including id, codes, ref_date, setting. 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.

codes_sys

can be "icd9", "icd10", or "readcodes"

riluzole_name

the name in your database stands for riluzole.

Value

two dataset:1) for incidence 2) for time varing cox

Examples

cleaning_mnd(demo, dx, rx, codes_drug_sys)

Cainefm/MND documentation built on Aug. 13, 2022, 3:33 p.m.