# Say you want to perform a disproportionality analysis between colitis and
# nivolumab among ICI cases
# identify drug DrecNo, and adr LLT code
d_drecno <-
ex_$d_drecno["nivolumab"]
a_llt <-
ex_$a_llt["a_colitis"]
# But you could also use get_drecno() and get_llt_soc()
# load tables demo, drug, adr, and link
demo <- demo_
adr <- adr_
drug <- drug_
link <- link_
# run routine
vigi_routine(
demo_data = demo,
drug_data = drug,
adr_data = adr,
link_data = link,
d_code = d_drecno,
a_code = a_llt,
vigibase_version = "September 2024"
)
# if you're working on a case, you can provide his/her time to onset
# with arg `case_tto`
vigi_routine(
case_tto = 150,
demo_data = demo,
drug_data = drug,
adr_data = adr,
link_data = link,
d_code = d_drecno,
a_code = a_llt,
vigibase_version = "September 2024"
)
# Customize with d_name and a_name, export the plot with export_to
vigi_routine(
case_tto = 150,
demo_data = demo,
drug_data = drug,
adr_data = adr,
link_data = link,
d_code = d_drecno,
a_code = a_llt,
vigibase_version = "September 2024",
d_label = "Nivolumab",
a_label = "Colitis",
export_to = paste0(tempdir(), "/", "vigicaen_graph.png")
)
Run the code above in your browser using DataLab