data(antidepressants)
#
ranks <- tcc(treat = drug_name, studlab = studyid,
event = responders, n = ntotal, data = antidepressants,
mcid = 1.25, sm = "OR", small.values = "undesirable")
#
fit <- mtrank(ranks)
#
paired_pref(fit, type = c("better", "worse"),
treat1 = "bupropion", treat2 = "escitalopram")
#
paired_pref(fit, type = c("better", "worse"),
treat1 = "escitalopram", treat2 = "bupropion")
#
paired_pref(fit, type = "all",
treat1 = c("bupropion", "escitalopram"),
treat2 = c("escitalopram", "bupropion"))
Run the code above in your browser using DataLab