desc_dch | R Documentation |
Computes positive
dechallenge counts over a set of adr and drug pairs.
desc_dch(.data, drug_s = "drug1", adr_s = "adr1")
.data |
A |
drug_s |
A character vector, the drug column(s) |
adr_s |
A character vector, the adverse drug reaction column(s). |
Counts are provided at the case level (not the drug-adr pair level).
Positive dechallenge refers to cases where drug was withdrawn or
dose-reduced and reaction abated (in part or in full).
You will need a link
data.table, see link_
, on which
you have added drugs and adrs with add_drug()
and add_adr()
.
A data.table with one row per drug-adr pair.
drug_s
and adr_s
, same as input
pos_dch
, number of positive dechallenge cases
link_
, add_drug()
, add_adr()
, desc_tto()
, desc_rch()
link_ <-
link_ |>
add_drug(
d_code = ex_$d_groups_drecno,
drug_data = drug_
) |>
add_adr(
a_code = ex_$a_llt,
adr_data = adr_
)
desc_dch(link_,
drug_s = "pd1",
adr_s = "a_colitis")
# you can vectorize over multiple adrs and drugs
desc_dch(link_,
drug_s = c("pd1", "pdl1"),
adr_s = c("a_colitis", "a_pneumonitis"))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.