gertvv / gemtc

GeMTC R package: model generation for network meta-analysis
GNU General Public License v3.0
43 stars 25 forks source link

Fix a bug in `decompose.network()` #76

Open fenguoerbian opened 6 months ago

fenguoerbian commented 6 months ago

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.