cumul function

Cumulative method for precision of treatment hierarchy (POTH) metric

Cumulative method for precision of treatment hierarchy (POTH) metric

## S3 method for class 'poth' cumul(x, sort = TRUE, ...) ## S3 method for class 'cumul.poth' print(x, digits = 3, legend = TRUE, ...) cumul(x, ...)

Arguments

  • x: An R object of class poth.
  • sort: A logical indicating whether results should be sorted by decreasing ranking metric.
  • ...: Additional arguments.
  • digits: Minimal number of significant digits, see print.default.
  • legend: A logical indicating whether a legend should be printed.

Returns

A data frame with additional class cumul.poth and the following variables: - trt: Name of added treatment.

  • rank: Treatment rank (global).

  • score: Ranking metric (global).

  • poth_cum: Cumulative POTH.

Examples

library("netmeta") data(Senn2013) net1 <- netmeta(TE, seTE, treat1.long, treat2.long, studlab, data = Senn2013, sm = "MD", random = FALSE) # Cumulative method c1 <- cumul(poth(net1)) c1 plot(c1) plot(c1, labels = TRUE) c2 <- cumul(poth(net1), sort = FALSE) c2 plot(c2) plot(c2, labels = TRUE)
  • Maintainer: Augustine Wigle
  • License: GPL (>= 2)
  • Last published: 2024-11-01