loo function

Leave-one-out method for precision of treatment hierarchy (POTH) metric

Leave-one-out method for precision of treatment hierarchy (POTH) metric

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

Arguments

  • x: An R object of class poth.
  • ...: 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 loo.poth and the following variables: - trt: Treatment names.

  • rank: Treatment rank (global).

  • score: Ranking metric (global).

  • poth_loo: Leave-one-out POTH.

  • resid: Residuals (global POTH minus leave-one-out POTH.

  • ratio: Ratio of residual devided by absolute sum of residuals.

Examples

library("netmeta") data(smokingcessation) p1 <- pairwise(list(treat1, treat2, treat3), event = list(event1, event2, event3), n = list(n1, n2, n3), data = smokingcessation, sm = "OR") net1 <- netmeta(p1, random = FALSE) # Leave-one-out method loo1 <- loo(poth(net1)) loo1
  • Maintainer: Augustine Wigle
  • License: GPL (>= 2)
  • Last published: 2024-11-01