decompose.network() failes to run when all studies in network are multi-arm trials. That's because filter.network() called in decompose.network() can not successfully construct the non-existing 2-arm trial network in this scenario.
This patch adds a check for this scenario and directly construct the network when all studies are multi-arm and filtering for 2-arm trials is not necessary.
decompose.network()
failes to run when all studies innetwork
are multi-arm trials. That's becausefilter.network()
called indecompose.network()
can not successfully construct the non-existing 2-arm trial network in this scenario.This patch adds a check for this scenario and directly construct the network when all studies are multi-arm and filtering for 2-arm trials is not necessary.