inconsistency.loops: Identify comparisons in loops that fulfil criteria for node-splitting
Description
Identify comparisons informed by both direct and indirect evidence from
independent sources, which therefore fulfil the criteria for testing for
inconsistency via node-splitting. Follows the method of van Valkenhoef vanvalkenhoef2016;textualMBNMAtime.
Usage
inconsistency.loops(data)
Value
A data frame of comparisons that are informed by direct and indirect
evidence from independent sources. Each row of the data frame is a
different treatment comparison. Numerical codes in t1 and t2 correspond
to treatment codes.
Arguments
data
A data frame containing variables studyID and treatment (as
numeric codes) that indicate which treatments are used in which studies.
Details
Similar to gemtc::mtc.nodesplit() but uses a fixed
reference treatment and therefore suggests fewer loops in which to test for
inconsistency. Heterogeneity can also be parameterised as inconsistency and
so testing for inconsistency in additional loops whilst changing the
reference treatment would also be identifying heterogeneity. Depends on igraph.
data <- data.frame(studyID=c(1,1,2,2,3,3,4,4,5,5,5),
treatment=c(1,2,1,3,2,3,3,4,1,2,4)
)
# Identify comparisons informed by direct and indirect evidenceinconsistency.loops(data)