netdistance: Calculate distance matrix for an adjacency matrix

View source: R/netdistance.R

netdistanceR Documentation

Calculate distance matrix for an adjacency matrix

Description

Calculate distance matrix for an adjacency matrix based on distance algorithm by Müller et al. (1987).

Usage

netdistance(x)

Arguments

x

Either a netmeta object or an adjacency matrix.

Author(s)

Gerta Rücker gerta.ruecker@uniklinik-freiburg.de

References

Müller WR, Szymanski K, Knop JV, and Trinajstic N (1987): An algorithm for construction of the molecular distance matrix. Journal of Computational Chemistry, 8, 170–73

See Also

netmeta, netconnection

Examples

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, common = FALSE)

netdistance(net1)

## Not run: 
data(Senn2013)

net1 <- netmeta(TE, seTE, treat1, treat2, studlab,
  data = Senn2013, sm = "MD")

netdistance(net1)
netdistance(net1$A.matrix)

## End(Not run)


netmeta documentation built on June 23, 2024, 9:06 a.m.